Browse Source

fix: nitro server cookie maxAge fixed

Netfan 3 weeks ago
parent
commit
34789645f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/backend-mock/utils/cookie-utils.ts

+ 1 - 1
apps/backend-mock/utils/cookie-utils.ts

@@ -14,7 +14,7 @@ export function setRefreshTokenCookie(
 ) {
   setCookie(event, 'jwt', refreshToken, {
     httpOnly: true,
-    maxAge: 24 * 60 * 60 * 1000,
+    maxAge: 24 * 60 * 60, // unit: seconds
     sameSite: 'none',
     secure: true,
   });