feat: add settings page for database, OpenRouter, score, theme, and display density configurations.

This commit is contained in:
Michael committed 2026-02-22 14:16:49 +01:00
1 parent 359d196c4d
commit cfd079fbf5
7 files changed
+41 -28

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import type { NextAuthConfig } from "next-auth";
export const authConfig = {
pages: {
signIn: "/login",
},
callbacks: {
async jwt({ token, user }) {
if (user) {
token.role = (user as any).role;
token.id = user.id;
}
return token;
},
async session({ session, token }) {
if (session.user) {
(session.user as any).role = token.role as string;
(session.user as any).id = token.id as string;
}
return session;
},
},
providers: [], // Les providers seront ajoutés dans auth.ts
} satisfies NextAuthConfig;