diff --git a/apps/server/src/modules/auth/supertokens/supertokens.config.ts b/apps/server/src/modules/auth/supertokens/supertokens.config.ts index 26b388c1..e29dea3d 100644 --- a/apps/server/src/modules/auth/supertokens/supertokens.config.ts +++ b/apps/server/src/modules/auth/supertokens/supertokens.config.ts @@ -29,7 +29,11 @@ export const recipeList = ( ) => { const isProd = process.env.NODE_ENV === 'production'; const cookieSettings = isProd - ? { cookieDomain: '.tegon.ai', olderCookieDomain: '', cookieSecure: true } + ? { + cookieDomain: '.tegon.ai', + olderCookieDomain: 'app.tegon.ai', + cookieSecure: true, + } : {}; return [