I
I
Ismail-12019-08-22 15:48:56
Laravel
Ismail-1, 2019-08-22 15:48:56

How to login to a site via social networks on Vue + Laravel using vue-auth, jwt?

I made an entrance and registration on the site using the jwt and vue-auth packages, everything works.
Now the task is to make an entrance through social networks - vk, facebook, etc.
I can not find information on how to implement this using these packages, and how it is implemented in general.
What steps do I need to take on vue and what steps on laravel to implement it?
Or where can I read about it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Deminua2, 2019-08-24
@Deminua2

Take a ready-made solution from Lara for backing: https://laravel.com/docs/5.8/socialite
And the vue front was drunk as you like...

I
Ivan Shumov, 2019-08-22
@inoise

If possible, then we take Auth0 and rejoice. If not, we cry

E
Eugene, 2019-08-23
@coller13

Forget about ready-made solutions, otherwise you will be scribbling questions on the toaster.
Regarding authorization: Google oAuth2.
For the first time, you will study the documentation for a long time and delve into the process itself, but then a simple authorization will be ready in a couple of evenings.
upd : start doing the first authorization with VK, their API is clearer and it will be easier, because you will spend less time studying the social network API. Leave authorization through FB for later, when you figure out the main logic. FB API is more complicated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question