diff --git a/plugins/auth-backend/src/providers/google/provider.ts b/plugins/auth-backend/src/providers/google/provider.ts index 1e0ed83234..5d715724bf 100644 --- a/plugins/auth-backend/src/providers/google/provider.ts +++ b/plugins/auth-backend/src/providers/google/provider.ts @@ -70,15 +70,20 @@ export class GoogleAuthProvider strategy(): passport.Strategy { return new GoogleStrategy( - { ...this.providerConfig.options, passReqToCallback: true }, + { ...this.providerConfig.options }, ( - _req: any, accessToken: any, refreshToken: any, + params: any, profile: any, cb: any, ) => { - cb(undefined, { profile, accessToken, refreshToken }); + cb(undefined, { + profile, + idToken: params.id_token, + accessToken, + refreshToken, + }); }, ); }