Scheduling infrastructure for absolutely everyone.
Add JWT secret to next-auth.js (#730)
Bailey Pumfleetbb3362f2efa3
diff --git a/.env.example b/.env.exampleindex 9e2aaa42744..06dc08d075a 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].tsxindex 324e1c3c63d..68c5140e67d 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",