implement auth error page and moved auth-related pages to /auth path

This commit is contained in:
2025-08-19 04:27:13 -04:00
parent 12e9ec5d85
commit f92c79ac60
6 changed files with 45 additions and 12 deletions

View File

@@ -25,9 +25,11 @@ const config = {
adapter: DrizzleAdapter(db),
providers,
pages: {
signIn: "/signin",
signOut: "/signout",
signIn: "/auth/signin",
signOut: "/auth/signout",
error: "/auth/error",
},
trustHost: true,
} satisfies NextAuthConfig;
export const { handlers, signIn, signOut, auth }: NextAuthResult = NextAuth(config);
export const { handlers, signIn, signOut, auth }: NextAuthResult =
NextAuth(config);