From 79ff5347860c063f8719c7885422286a45ca6cbe Mon Sep 17 00:00:00 2001 From: Alan Alickovic Date: Fri, 3 May 2024 23:16:49 +0200 Subject: [PATCH] update --- src/test/server/handlers/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/server/handlers/auth.ts b/src/test/server/handlers/auth.ts index b3055a2c..02ca020e 100644 --- a/src/test/server/handlers/auth.ts +++ b/src/test/server/handlers/auth.ts @@ -86,7 +86,7 @@ export const authHandlers = [ return HttpResponse.json(result, { headers: { // with a real API servier, the token cookie should also be Secure and HttpOnly - 'Set-Cookie': `${AUTH_COOKIE}=${result.jwt}; Path=/; Max-Age=3600;`, + 'Set-Cookie': `${AUTH_COOKIE}=${result.jwt};`, }, }); } catch (error: any) { @@ -101,7 +101,7 @@ export const authHandlers = [ return HttpResponse.json(result, { headers: { // with a real API servier, the token cookie should also be Secure and HttpOnly - 'Set-Cookie': `${AUTH_COOKIE}=${result.jwt}; Path=/; Max-Age=3600;`, + 'Set-Cookie': `${AUTH_COOKIE}=${result.jwt};`, }, }); } catch (error: any) { @@ -114,7 +114,7 @@ export const authHandlers = [ { message: 'Logged out' }, { headers: { - 'Set-Cookie': `${AUTH_COOKIE}=; Path=/; Max-Age=0;`, + 'Set-Cookie': `${AUTH_COOKIE}=;`, }, } );