diff --git a/.env.example b/.env.example index 9e2aaa42..06dc08d0 100644 --- a/.env.example +++ b/.env.example @@ -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' diff --git a/pages/api/auth/[...nextauth].tsx b/pages/api/auth/[...nextauth].tsx index 324e1c3c..68c5140e 100644 --- a/pages/api/auth/[...nextauth].tsx +++ b/pages/api/auth/[...nextauth].tsx @@ -10,6 +10,9 @@ export default NextAuth({ session: { jwt: true, }, + jwt: { + secret: process.env.JWT_SECRET, + }, pages: { signIn: "/auth/login", signOut: "/auth/logout",