Fix console auth: add credentials include for cross-origin cookies

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-03-25 01:03:56 -04:00
1 parent 27a8f0667c
commit 75f82971c3
1 file changed
+3
+3
View File
@@ -3,6 +3,9 @@ import { organizationClient } from 'better-auth/client/plugins';
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8787',
fetchOptions: {
credentials: 'include' as RequestCredentials,
},
plugins: [
organizationClient(),
],