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:
1 parent
27a8f0667c
commit
75f82971c3
1 file changed
+3
@@ -3,6 +3,9 @@ import { organizationClient } from 'better-auth/client/plugins';
|
|||||||
|
|
||||||
export const authClient = createAuthClient({
|
export const authClient = createAuthClient({
|
||||||
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8787',
|
baseURL: process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8787',
|
||||||
|
fetchOptions: {
|
||||||
|
credentials: 'include' as RequestCredentials,
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
organizationClient(),
|
organizationClient(),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user