Skip to content

Commit

Permalink
fix: cookie miss match name
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslashf committed Aug 19, 2024
1 parent 3818c64 commit 0aa4552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const cookiePrefix = process.env.NODE_ENV === "production" ? "__Secure-" : "";
export const authOptions: NextAuthOptions = {
cookies: {
sessionToken: {
name: `${cookiePrefix}next-auth.state`,
name: `${cookiePrefix}next-auth.session-token`,
options: {
httpOnly: true,
sameSite: "lax",
Expand All @@ -57,7 +57,7 @@ export const authOptions: NextAuthOptions = {
},
},
callbackUrl: {
name: `${cookiePrefix}next-auth.state`,
name: `${cookiePrefix}next-auth.callback-url`,
options: {
sameSite: "lax",
path: "/",
Expand Down

0 comments on commit 0aa4552

Please sign in to comment.