-
-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
Is your feature request related to a problem? Please describe.
Currently, you can only to pass options.headers on first render.
This makes it impossible to 'update' things such as the token, if required.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
setOptions() to update the stored options:
eg:
setOptions({
...options,
headers: {
Authorization: 'Bearer anUpdatedToken`
}
Describe alternatives you've considered
Right now, I have to wrap my component in another component that async gets the bearer token.

Additional context
Add any other context or screenshots about the feature request here.
olavoparnoolavoparno
Metadata
Metadata
Assignees
Labels
No labels