Replies: 1 comment
-
Ideally it would be a callback for full flexibility. :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using scalar alongside your application, it would make sense to make API requests, as the current user authenticated in your application.
Therefore it would be great with a method to dynamically pre-fill e.g. Bearer tokens. A non integration/application specific solution to this, could be by simply add a token endpoint to the config. If this endpoint returns a token, scalar will pre fill the token field with this.
The api token endpoint should be checked at runtime and not on build, as scalar should get the updated token, if the user authentication changes in your application.
Feature request as per encouragement by one of the developers on Discord.
Beta Was this translation helpful? Give feedback.
All reactions