mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 12:55:19 +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: {
|
csrfToken: {
|
||||||
name: `${useSecureCookies ? '__Host-' : ''}authjs.csrf-token`,
|
name: `${useSecureCookies ? '__Secure-' : ''}authjs.csrf-token`,
|
||||||
options: {
|
options: {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: 'lax',
|
sameSite: 'lax',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue