I
I
Ilya Zabcode2019-04-13 13:47:54
Node.js
Ilya Zabcode, 2019-04-13 13:47:54

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

1 answer(s)
R
razer96, 2019-05-24
@zabozlaev

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 question

Ask a Question

731 491 924 answers to any question