How to determine backend jwt without sending extra data or putting extra headers in request?
Unanswered
Oak shoot sawfly posted this in #help-forum
Oak shoot sawflyOP
So i have a backend that returns a jwt when Sign In is successful, i want to store the backend's JWT and determine it in the middleware of next.js.
I use next auth for authentication. Is that possible to determine the JWT token for backend by next auth session but not to send it from the client side just on server side such that users can't see the token for backend in browser also i don't want them to know how i determine the right backend token based on their session. Thank you!
I use next auth for authentication. Is that possible to determine the JWT token for backend by next auth session but not to send it from the client side just on server side such that users can't see the token for backend in browser also i don't want them to know how i determine the right backend token based on their session. Thank you!