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

Dynamically set Authorization header token #95

Open
1 of 3 tasks
modbender opened this issue Dec 29, 2024 · 2 comments
Open
1 of 3 tasks

Dynamically set Authorization header token #95

modbender opened this issue Dec 29, 2024 · 2 comments

Comments

@modbender
Copy link

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

@mattmess1221
Copy link
Contributor

Could this possibly be resolved via #89?

@modbender
Copy link
Author

modbender commented Jan 8, 2025

Possibly? I'm not sure if that fits what I want. I'll test it later.

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