Reputation: 2569
I'm using Google's javascript auth library for authenticating users to my webapp where I check the token's expiry for validity. Currently I'm using the client-side only oauth flow.
Few questions:
Does Google auth handle token refresh by itself or do I have to do so manually?
If it does handle token refresh by itself - is there a hook method I can use to detect when the access token has changed?
If it doesn't - what alternatives am I facing?
Many thanks.
Upvotes: 4
Views: 636
Reputation: 2569
Revisiting this question:
After a lot of trial and error I've come to the conclusion that Google's javascript auth lib does handle the refreshing of tokens on its own.
No there is no such hook available.
N/A.
Upvotes: 1