jaredhanson / passport-google-oauth

Google authentication strategies for Passport and Node.js.
https://www.passportjs.org/packages/passport-google-oauth/?utm_source=github&utm_medium=referral&utm_campaign=passport-google-oauth&utm_content=about
MIT License
776 stars 327 forks source link

how to get the idtoken in the callback for googleStrategy #129

Open ashishnumino opened 7 years ago

ashishnumino commented 7 years ago
function (accessToken, refreshToken, expiresIn, profile, done)
    // Return done callback and pass transformed user object
    {
        tokenForMobile.access_token = accessToken;
        tokenForMobile.refresh_token = refreshToken;
        tokenForMobile.expires_in = expiresIn.expires_in;
                **tokenForMobile.expires_in = expiresIn.expires_in;**
        return done(null, transformGoogleProfile(profile._json));
    }

I want to get the id_token in the callback since i need it later.