Skip to content

Commit 354b004

Browse files
committed
change csrf cookie to secure not host
1 parent 4cf3024 commit 354b004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
9999
}
100100
},
101101
csrfToken: {
102-
name: `${useSecureCookies ? '__Host-' : ''}authjs.csrf-token`,
102+
name: `${useSecureCookies ? '__Secure-' : ''}authjs.csrf-token`,
103103
options: {
104104
httpOnly: true,
105105
sameSite: 'lax',

0 commit comments

Comments
 (0)