From 437e49b842f99bd73dc1590de6193cac09297bf6 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Fri, 4 Oct 2024 09:35:40 +0200 Subject: [PATCH] Fix: oauth cookie (not tested in prod) --- api/src/functions/oauth/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/functions/oauth/oauth.ts b/api/src/functions/oauth/oauth.ts index 2d59859..4dd7be1 100644 --- a/api/src/functions/oauth/oauth.ts +++ b/api/src/functions/oauth/oauth.ts @@ -107,7 +107,7 @@ const secureCookie = (user) => { process.env.SESSION_SECRET ).toString() - return [`session=${encrypted}`, ...cookieAttrs].join('; ') + return [`session_8911=${encrypted}`, ...cookieAttrs].join('; ') } const getUser = async ({ providerUser, accessToken, scope }) => {