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
I'll start off by saying thank you for this fantastic library! It's considerably sped up development time and just feels clean.
I'm currently trying to think of the best way to handle oAuth token expiration and how to transparently use the refresh token to grab a new oAuth access token.
I currently handle unauthorised requests in handleResponse - if the request is unauthorised it'll redirect to the login page. However, now I would like to handle using the refresh token token. I currently store the access token and refresh token in sessionStorage.
One idea I had was to potentially make a request from handleResponse; however, this didn't seem too clean (and as far as I can see it doesn't have access to do this)
Any ideas/assistance would be really appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I'll start off by saying thank you for this fantastic library! It's considerably sped up development time and just feels clean.
I'm currently trying to think of the best way to handle oAuth token expiration and how to transparently use the refresh token to grab a new oAuth access token.
I currently handle unauthorised requests in handleResponse - if the request is unauthorised it'll redirect to the login page. However, now I would like to handle using the refresh token token. I currently store the access token and refresh token in sessionStorage.
One idea I had was to potentially make a request from handleResponse; however, this didn't seem too clean (and as far as I can see it doesn't have access to do this)
Any ideas/assistance would be really appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: