We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d059c2a commit 7070e5aCopy full SHA for 7070e5a
components/server/src/auth/nonce-service.ts
@@ -30,8 +30,9 @@ export class NonceService {
30
res.cookie(NONCE_COOKIE_NAME, nonce, {
31
httpOnly: true,
32
secure: this.config.auth.session.cookie.secure,
33
- sameSite: "strict", // Strict for CSRF protection
+ sameSite: "lax", // Strict for CSRF protection
34
maxAge: 5 * 60 * 1000, // 5 minutes (same as JWT state expiry)
35
+ path: "/",
36
});
37
}
38
@@ -49,8 +50,8 @@ export class NonceService {
49
50
res.clearCookie(NONCE_COOKIE_NAME, {
51
52
- sameSite: "strict",
53
- path: "/auth",
+ sameSite: "lax",
54
55
56
57
0 commit comments