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.
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.