next-auth authorize credentials callback client side?
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Is it possible to call the authorize callback client side? The use case for this is the django backend server expects the call to be made client side in order to store the cookies. It also needs to set referrer which can only be done client side. I know this can be "faked" on the server-side, but it seems like too much work, would be easier if I could just call entire authorize callback directly on client.
1 Reply
Toyger
one of ways you can redirect user to your django backend and then redirect back to site, and it will set cookies, but then you need to make all consequential requests to backend directly from client.