Swapped the entire UI to Material UI, applied a global dark theme, and removed all of the old styled-jsx/CSS-module styling

This commit is contained in:
fuomag9
2025-10-31 21:03:02 +01:00
parent 315192fb54
commit 29acf06f75
41 changed files with 3122 additions and 2445 deletions

View File

@@ -14,7 +14,7 @@ export async function GET(request: NextRequest) {
try {
const { user, redirectTo } = await finalizeOAuthLogin(code, state);
createSession(user.id);
await createSession(user.id);
const destination = redirectTo && redirectTo.startsWith("/") ? redirectTo : "/";
return NextResponse.redirect(new URL(destination, config.baseUrl));
} catch (error) {

View File

@@ -3,6 +3,6 @@ import { destroySession } from "@/src/lib/auth/session";
import { config } from "@/src/lib/config";
export async function POST() {
destroySession();
await destroySession();
return NextResponse.redirect(new URL("/login", config.baseUrl));
}