ghaiklor / passport-google-plus-token

Passport strategy for authenticating with Google Plus via OAuth2 access tokens
http://ghaiklor.github.io/passport-google-plus-token/
MIT License
23 stars 11 forks source link

Refresh Token #132

Open P4R4DiSi4C opened 6 years ago

P4R4DiSi4C commented 6 years ago

Hello,

Im getting an access_token from my vue.js frontend that I send to my backend as the tutorial shows. When it reaches the passport method, I have the access_token but the refresh_token is empty. How to manage this ?

VUE.JS:

image

image

image

Im planning to save this access_token on my database to be able to use it later by calling the calendar API with the user's access_token. Though, I'll have issues when the token will be expired, how should I deal with that ?

Regards

ghaiklor commented 6 years ago

@P4R4DiSi4C you need to do login operation on your side again, or have refresh token and update the token manually. All this library does is gets the working token and do not provide any mechanism to refresh it.