From f10bf382924a4665e76273b17f7f863fb30a0f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Thu, 21 Apr 2022 15:10:23 -0600 Subject: [PATCH] Removed deprecated JWT secrets (#2574) --- .github/workflows/e2e.yml | 1 - apps/web/pages/api/auth/[...nextauth].tsx | 4 ---- 2 files changed, 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9ce93de3..34d45183 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,7 +19,6 @@ jobs: DATABASE_URL: postgresql://postgres:@localhost:5432/calendso NEXT_PUBLIC_WEBAPP_URL: http://localhost:3000 NEXT_PUBLIC_WEBSITE_URL: http://localhost:3000 - JWT_SECRET: secret # TODO: remove once PR#2122 is merged NEXTAUTH_SECRET: secret GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }} GOOGLE_LOGIN_ENABLED: true diff --git a/apps/web/pages/api/auth/[...nextauth].tsx b/apps/web/pages/api/auth/[...nextauth].tsx index 2831fff4..84792c71 100644 --- a/apps/web/pages/api/auth/[...nextauth].tsx +++ b/apps/web/pages/api/auth/[...nextauth].tsx @@ -188,10 +188,6 @@ export default NextAuth({ session: { strategy: "jwt", }, - /** @deprecated remove once PR#2122 is merged */ - jwt: { - secret: process.env.JWT_SECRET || process.env.NEXTAUTH_SECRET, - }, cookies: defaultCookies(WEBSITE_URL?.startsWith("https://")), pages: { signIn: "/auth/login",