Add JWT secret to next-auth.js (#730)
This commit is contained in:
parent
82e7e51fca
commit
bb3362f2ef
2 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@ GOOGLE_API_CREDENTIALS='secret'
|
||||||
BASE_URL='http://localhost:3000'
|
BASE_URL='http://localhost:3000'
|
||||||
NEXT_PUBLIC_APP_URL='http://localhost:3000'
|
NEXT_PUBLIC_APP_URL='http://localhost:3000'
|
||||||
|
|
||||||
|
JWT_SECRET='secret'
|
||||||
|
|
||||||
# @see: https://github.com/calendso/calendso/issues/263
|
# @see: https://github.com/calendso/calendso/issues/263
|
||||||
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
|
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
|
||||||
# NEXTAUTH_URL='http://localhost:3000'
|
# NEXTAUTH_URL='http://localhost:3000'
|
||||||
|
|
|
@ -10,6 +10,9 @@ export default NextAuth({
|
||||||
session: {
|
session: {
|
||||||
jwt: true,
|
jwt: true,
|
||||||
},
|
},
|
||||||
|
jwt: {
|
||||||
|
secret: process.env.JWT_SECRET,
|
||||||
|
},
|
||||||
pages: {
|
pages: {
|
||||||
signIn: "/auth/login",
|
signIn: "/auth/login",
|
||||||
signOut: "/auth/logout",
|
signOut: "/auth/logout",
|
||||||
|
|
Loading…
Reference in a new issue