mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
fix: update google oauth endpoints (#7442)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user