kndt84 / passport-cognito

Passport strategy for AWS Cognito User Pools
https://www.npmjs.com/package/passport-cognito
MIT License
78 stars 30 forks source link

RefreshToken? #7

Closed rbudding closed 7 years ago

rbudding commented 7 years ago

function(accessToken, idToken, refreshToken, user, session, cb) { process.nextTick(function() { user.expiration = session.getIdToken().getExpiration(); ... cb(null, user); })

--> How can I use the RefreshToken if the user.expiration is true...

kndt84 commented 7 years ago

Please refer my production code https://gist.github.com/kndt84/5be8e86a15468ed1c8fc3699429003ad