mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
change csrf cookie to secure not host
This commit is contained in:
parent
4cf3024967
commit
354b004402
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
|
|||
}
|
||||
},
|
||||
csrfToken: {
|
||||
name: `${useSecureCookies ? '__Host-' : ''}authjs.csrf-token`,
|
||||
name: `${useSecureCookies ? '__Secure-' : ''}authjs.csrf-token`,
|
||||
options: {
|
||||
httpOnly: true,
|
||||
sameSite: 'lax',
|
||||
|
|
|
|||
Loading…
Reference in a new issue