You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The accessToken is what I use when invoking various google api endpoints which I plan to be doing fairly frequently whilst the user is using my app.
Is it expected that I cache this user object for 3599 seconds before needing to re-sign the user? Or would I call a google endpoint to refresh the token, and aim to keep the token alive all the time?
Thoughts?
The text was updated successfully, but these errors were encountered:
I think "keep the token alive all the time" is not ideal. If you want some performance optimization (reduce some additional requests) then just keep track of the expiration date of the token and only refresh it when needed. If you are lazy like me then just always refresh it before use :d
This is not a bug; more of a question to see what ideas are used out there.
When a user logs in via google-signin, a user object is returned similar to the following:
The
accessToken
is what I use when invoking various google api endpoints which I plan to be doing fairly frequently whilst the user is using my app.Is it expected that I cache this user object for
3599
seconds before needing to re-sign the user? Or would I call a google endpoint to refresh the token, and aim to keep the token alive all the time?Thoughts?
The text was updated successfully, but these errors were encountered: