fix: update google oauth endpoints (#7442)

This commit is contained in:
Taesu
2026-01-28 17:06:03 -08:00
committed by Alex Yang
parent a7740bc3b9
commit d401be9c8e
+2 -2
View File
@@ -82,7 +82,7 @@ export const google = (options: GoogleOptions) => {
const url = await createAuthorizationURL({
id: "google",
options,
authorizationEndpoint: "https://accounts.google.com/o/oauth2/auth",
authorizationEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",
scopes: _scopes,
state,
codeVerifier,
@@ -117,7 +117,7 @@ export const google = (options: GoogleOptions) => {
clientKey: options.clientKey,
clientSecret: options.clientSecret,
},
tokenEndpoint: "https://www.googleapis.com/oauth2/v4/token",
tokenEndpoint: "https://oauth2.googleapis.com/token",
});
},
async verifyIdToken(token, nonce) {