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

Implement the refresh token feature on the client. #39

Open
cristiano-pacheco opened this issue Dec 5, 2016 · 1 comment
Open

Implement the refresh token feature on the client. #39

cristiano-pacheco opened this issue Dec 5, 2016 · 1 comment

Comments

@cristiano-pacheco
Copy link
Contributor

When api returns a response with status 401 and with data.reason = 'token_expired'

1- Try to update the user's token, sending a request to /auth/refresh

  • If successful:
    Update the user's token (Local Storer, Vuex, Header) and resend the previous request.

  • If you do not succeed:
    Delete the token and user data in Vuex and Local Storage and redirect to the login page.

@vinicius73
Copy link
Member

I'm working on it.
I sent a PR with first adjusts #40
This a delicate situation, because have a lot details for consideration, the principal is requests concurrence

I will implement a preventive approach, not reactive
Mais detalhes em breve

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

No branches or pull requests

2 participants