From 18d411c2bb12d7c0954f3785b13a1293d238df01 Mon Sep 17 00:00:00 2001 From: GameDog9988 Date: Sun, 7 Apr 2024 16:58:39 -0400 Subject: [PATCH] fix: remove checks for pkce and state --- apps/client/src/pages/api/auth/[...nextauth].ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/apps/client/src/pages/api/auth/[...nextauth].ts b/apps/client/src/pages/api/auth/[...nextauth].ts index 3b4f17e..b16380f 100644 --- a/apps/client/src/pages/api/auth/[...nextauth].ts +++ b/apps/client/src/pages/api/auth/[...nextauth].ts @@ -14,6 +14,7 @@ export const authOptions = ( GoogleProvider({ clientId: process.env.GOOGLE_CLIENT_ID ?? "", clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? "", + checks: ["none"], profile(profile) { const cookieNickname = req && "cookies" in req && typeof req.cookies === "object" @@ -74,17 +75,6 @@ export const authOptions = ( domain: process.env.SESSION_COOKIE_DOMAIN, }, }, - // https://github.com/nextauthjs/next-auth/discussions/6898 - pkceCodeVerifier: { - name: "next-auth.pkce.code_verifier", - options: { - httpOnly: true, - sameSite: "none", - path: "/", - secure: process.env.NODE_ENV === "production", - domain: process.env.SESSION_COOKIE_DOMAIN, - }, - }, }, }; };