Skip to content

Dynamically set Authorization header token #95

@modbender

Description

@modbender

Describe the feature

The access token is often rotated using refresh token mechanism, so whenever this happens is there any way to set token so that I don't have to specify this header every time.

I'm using a port of nextauth.js nuxt-auth so whenever a refresh happens token is set on server side. It would be helpful if there's a function I can call to set something like global state or something for token.

On non server side I was imagining something like useState that would allow me to override access token all over the app.

Additional information

  • Would you be willing to help implement this feature?
  • Can you think of other implementations of this feature?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions