Replies: 1 comment 1 reply
-
@Jaeppetto I have the same problem. Did you figure out a solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm configuring update logic for access and refresh tokens via the JWT callback. I'm using the token set from the service we are developing, not the token from Credentials.
I want to handle the logic when the server's refresh token expires in the catch statement among the last conditional statements in the JWT callback. However, it seems that the signOut method cannot be called inside the JWT callback.
How can I perform a sign-out from inside the JWT callback? (Inside middleware.ts, the JWT callback is being called via auth().)
Or is there a fundamental issue with my token management logic?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions