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

How to access renewed access-token #51

Open
nix12 opened this issue Oct 31, 2018 · 0 comments
Open

How to access renewed access-token #51

nix12 opened this issue Oct 31, 2018 · 0 comments

Comments

@nix12
Copy link

nix12 commented Oct 31, 2018

I am trying to get access to the new access-token after verifyCredentials has been called. My application interacts with multiple APIs on the back and uses the client and access-token to verify that a user has been login and is authorized. The problem I am having is that when my React frontend reloads I have to update the stored access-token with the new one. I've looked the the of redux-token-auth and found that the verifyCredentials function does not return a promise for I can access the response data. Is there any other way to access the new access-token immediately after reload so it can be sent and store in backend?

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

No branches or pull requests

1 participant