Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making additional request in handleResponse #163

Open
kieranja opened this issue Jan 25, 2017 · 0 comments
Open

Making additional request in handleResponse #163

kieranja opened this issue Jan 25, 2017 · 0 comments
Labels

Comments

@kieranja
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants