Next.js Discord

Discord Forum

Jwt token in 2 urls like (same.com & dev.same.com)

Unanswered
Cornish Rex posted this in #help-forum
Open in Discord
Cornish RexOP
Hello, Everyone
I am using web3 with next-auth
so I save login info session with metamask info.
After user login, url is redirected by chat.example.com.
because I'm having some issues on the last step, because I cannot redirect with headers (to return the jwt) on Next, Im not sure whats the best way to go about this.
How can I get jwt token on chat.example.com?
because I could pass the jwt as a query param but I don't think thats very safe.

0 Replies