feat(frontend): add discord callback page

this only handles existing accounts for now, still need to write an action function
This commit is contained in:
sam 2024-09-13 14:56:38 +02:00
parent 116d0577a7
commit ff22530f0a
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
13 changed files with 196 additions and 66 deletions

View file

@ -1,13 +1,10 @@
using System.Security.Cryptography;
using Foxnouns.Backend.Database;
using Foxnouns.Backend.Database.Models;
using Foxnouns.Backend.Utils;
using Microsoft.EntityFrameworkCore;
using NodaTime;
namespace Foxnouns.Backend.Middleware;
public class AuthenticationMiddleware(DatabaseContext db, IClock clock) : IMiddleware
public class AuthenticationMiddleware(DatabaseContext db) : IMiddleware
{
public async Task InvokeAsync(HttpContext ctx, RequestDelegate next)
{