Answer the question
In order to leave comments, you need to log in
What should be the scenario for authorization?
Briefly on plans: local, google, vk. Tell me about the script, is it supposed to be like this? /api/auth/google -> redirect to google url with url to server redirect -> server redirect, set cookie with jwt token -> redirect to front?
Answer the question
In order to leave comments, you need to log in
Everything seems to be correct. As far as I know, if you use passport, then in the authorization strategy through social networks there is an automatic redirect to social network services. I advise you to use passport. And then everything is correct, you get a social network authorization token, save it, well, that’s all in principle)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question