Next-auth with custom backend server.
Unanswered
Japanese jack mackerel posted this in #help-forum
Japanese jack mackerelOP
Hey, I am trying to understand how i can implement authentication in my application such that i just need next-auth (authjs) to only get the idToken from the provider (like google) and make request back to my backend server (nestjs) where i verify the idtoken with provider and return jwt token. Currently i am using callback methods in next-auth to dispatch action to fetch token and set the token in session storage but since its running on server am not able to set it.