We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e848e9e commit ff361f2Copy full SHA for ff361f2
apps/server/src/services/auth.ts
@@ -29,6 +29,15 @@ export function createAuth(db: Database, env: Env) {
29
baseURL: process.env.API_SERVER_URL || 'http://localhost:3000',
30
trustedOrigins: ['*'],
31
32
+ // To skip state-mismatch errors
33
+ // https://github.com/better-auth/better-auth/issues/4969#issuecomment-3397804378
34
+ advanced: {
35
+ defaultCookieAttributes: {
36
+ sameSite: 'None', // this enables cross-site cookies
37
+ secure: true, // required for SameSite=None
38
+ },
39
40
+
41
socialProviders: {
42
google: {
43
clientId: env.AUTH_GOOGLE_CLIENT_ID,
0 commit comments