passport-google-plus-token icon indicating copy to clipboard operation
passport-google-plus-token copied to clipboard

Refresh Token

Open P4R4DiSi4C opened this issue 6 years ago • 1 comments

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

P4R4DiSi4C avatar Apr 25 '18 08:04 P4R4DiSi4C

@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.

ghaiklor avatar Apr 25 '18 09:04 ghaiklor