implement auth error page and moved auth-related pages to /auth path
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user