jaredhanson / passport-google-oauth

Google authentication strategies for Passport and Node.js.

Home Page:https://www.passportjs.org/packages/passport-google-oauth/?utm_source=github&utm_medium=referral&utm_campaign=passport-google-oauth&utm_content=about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get the idtoken in the callback for googleStrategy

ashishnumino opened this issue · comments

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.