fix: add nextauth cookies

This commit is contained in:
lucas-neynar 2025-04-07 16:45:22 -07:00
parent 13d5ae9ff2
commit 99556cbac0
No known key found for this signature in database
2 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@neynar/create-farcaster-mini-app",
"version": "1.2.10",
"version": "1.2.11",
"type": "module",
"private": false,
"access": "public",

View File

@ -89,6 +89,34 @@ export const authOptions: AuthOptions = {
}
return session;
},
},
cookies: {
sessionToken: {
name: `next-auth.session-token`,
options: {
httpOnly: true,
sameSite: "none",
path: "/",
secure: true
}
},
callbackUrl: {
name: `next-auth.callback-url`,
options: {
sameSite: "none",
path: "/",
secure: true
}
},
csrfToken: {
name: `next-auth.csrf-token`,
options: {
httpOnly: true,
sameSite: "none",
path: "/",
secure: true
}
}
}
}