How to set cookie in jwt callback? #10864
Unanswered
christopherhan
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a solution similar to this issue but for v5: #6700
My jwt() callback calls another backend API endpoint, and that endpoint returns a
Set-Cookie
header but it seems the cookie is not being sent because the jwt callback is not in a client component.The v4 solution is to use advanced initialization, and the v5 lazy initialization doesn't have a way to modify the response.
Beta Was this translation helpful? Give feedback.
All reactions