Skip to content

Commit

Permalink
fix: remove checks for pkce and state
Browse files Browse the repository at this point in the history
  • Loading branch information
agrattan0820 committed Apr 7, 2024
1 parent bd57251 commit 18d411c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apps/client/src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
},
},
},
};
};
Expand Down

0 comments on commit 18d411c

Please sign in to comment.