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}=;`, }, } );