Setting the token for all requests #540
Unanswered
charlesoestergaard
asked this question in
Q&A
Replies: 1 comment 9 replies
-
@rumfiske Is this a regression? Would you be able to create a StackBlitz example to recreate? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use NextAuth with Cognito as a provider. When the user's token gets refreshed, the OpenAPI token doesn't update correctly. So I get "Unauthorized" error. Even when the token indeed did get refreshed.
This will return undefined until I refresh the page a couple of times.
I also update the token when the user sign in, or when a token is refreshed in [...nextauth]/route.ts
Beta Was this translation helpful? Give feedback.
All reactions