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

withAccessToken: allow dynamic tokens #46

Open
LukasFritzeDev opened this issue Mar 20, 2024 · 0 comments
Open

withAccessToken: allow dynamic tokens #46

LukasFritzeDev opened this issue Mar 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@LukasFritzeDev
Copy link
Member

#45 introduced the common interceptor withAccessToken.

If changing the access-token at runtime should be supported (what I suppose is a real-world-use-case), the withAccessToken interceptor is not the right solution, because it would require to create a new client and replace all usages.

Maybe the token parameter could be a function (executed in the interceptor) or a variable bag { token: string } what can be mutated during runtime – but this is a not so common and reasonable approach.

@LukasFritzeDev LukasFritzeDev added enhancement New feature or request good first issue Good for newcomers labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant