We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64655a5 + 3eda3cc commit 1c8d430Copy full SHA for 1c8d430
web-app/.env.sample
@@ -13,6 +13,7 @@ TWITTER_CLIENT_SECRET=""
13
14
NEXTAUTH_SECRET=""
15
NEXTAUTH_URL="http://localhost:3000/"
16
+COOKIE_DOMAIN=".autonomysfaucet.xyz"
17
18
PRIVATE_KEY=""
19
NEXT_PUBLIC_RPC_ENDPOINT=""
web-app/app/api/auth/[...nextauth]/route.ts
@@ -89,6 +89,18 @@ const authOptions: AuthOptions = {
89
session.user = token
90
return session
91
}
92
+ },
93
+ cookies: {
94
+ sessionToken: {
95
+ name: 'next-auth.session-token',
96
+ options: {
97
+ httpOnly: true,
98
+ sameSite: 'lax',
99
+ path: '/',
100
+ secure: process.env.NODE_ENV === 'production',
101
+ domain: process.env.COOKIE_DOMAIN || undefined
102
+ }
103
104
105
106
0 commit comments