Skip to content

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

@javialon26

Description

@javialon26

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions