Skip to content

Commit a6aba2a

Browse files
ComBbaclaude
andcommitted
fix: add basePath to SessionProvider for client-side auth routing
The client-side signIn()/signOut() functions from next-auth/react default to /api/auth. Since we moved NextAuth to /auth/api to avoid DO ingress prefix stripping, SessionProvider needs basePath="/auth/api" to match the server config. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 388a279 commit a6aba2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/providers/session-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export function AuthSessionProvider({
77
}: {
88
children: React.ReactNode;
99
}) {
10-
return <SessionProvider refetchInterval={300}>{children}</SessionProvider>;
10+
return <SessionProvider basePath="/auth/api" refetchInterval={300}>{children}</SessionProvider>;
1111
}

0 commit comments

Comments
 (0)