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

After token expiration the authorization header on axios still presents #172

Closed
javialon26 opened this issue May 11, 2018 · 5 comments · Fixed by #544 · May be fixed by bokismoki/SocialApp#5 or bokismoki/skullcandy#9
Closed

After token expiration the authorization header on axios still presents #172

javialon26 opened this issue May 11, 2018 · 5 comments · Fixed by #544 · May be fixed by bokismoki/SocialApp#5 or bokismoki/skullcandy#9
Labels

Comments

@javialon26
Copy link

Version

v4.3.0

Reproduction link

https://github.com/nuxt-community/auth-module

Steps to reproduce

I use local strategy with a token. After the token expires if i reload the page, the user is logged out because i have resetOnError=True, but in all request made with axios the authorization header with the expired token is still present and all request return 401.

What is expected ?

After token expiration the auth header in axios must be removed.

What is actually happening?

The auth header is still present and all request fail.

This bug report is available on Nuxt.js community (#c130)
@ghost ghost added the cmty:bug-report label May 11, 2018
@robsontenorio
Copy link
Contributor

robsontenorio commented May 18, 2018

I think it should be handled on LOCAL Scheme implementation. The LOCAL Scheme should implement a built-in refresh token policy. Of course, the backend also should handle the "refresh token" policy.

For OAUTH2 Scheme a solution was proposed. Waiting approval.
#188

@metawise
Copy link

I wonder what happened to this issue?

@robsontenorio
Copy link
Contributor

@metawise there are too many open PR from community, but I think the Maintainers are busy with other packages.

This module is pretty important, a must have for any application. Would be nice if they come back :)

@TheAlexLichter
Copy link
Member

@robsontenorio We did not forget any of you.

@pi0
Copy link
Member

pi0 commented Mar 15, 2020

Fix released with v4.9.0.

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