Add JWT secret to next-auth.js (#730)

This commit is contained in:
Bailey Pumfleet 2021-09-23 10:02:53 +01:00 committed by GitHub
parent 82e7e51fca
commit bb3362f2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,8 @@ GOOGLE_API_CREDENTIALS='secret'
BASE_URL='http://localhost:3000'
NEXT_PUBLIC_APP_URL='http://localhost:3000'
JWT_SECRET='secret'
# @see: https://github.com/calendso/calendso/issues/263
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
# NEXTAUTH_URL='http://localhost:3000'

View file

@ -10,6 +10,9 @@ export default NextAuth({
session: {
jwt: true,
},
jwt: {
secret: process.env.JWT_SECRET,
},
pages: {
signIn: "/auth/login",
signOut: "/auth/logout",