Laravel Socialite Login with Google and Github | Laravel Breeze
Вставка
- Опубліковано 8 лис 2024
- In this video tutorial we will learn on how to add google and GitHub authentication in our Laravel breeze starter kit.
Channel: / @laraphant
Twitter: / misikowilliam
Facebook: / williamjumamisiko - Наука та технологія
Great brother we can take number google account ? After login user
Yes the callback provides the gmail address of the user, the avatar, names, among other details
@@laraphant you are the best brother thanks
I try everything brother we cant get user phone after login with google account if you have solution lat me know
@@riadhcoding Oooh if you are intending to get the phone number of a user, you can just have a form where the user will provide it before logging them in. The google api wont provide that.
Thanks for this awesome video, can you demostrate on another video how to create a local app manager to login with, I mean, as google and github but app locally hosted?
I would appreciate more details. Thanks
@@laraphant Thank you for answer, I mean, create an application to handle the authentication of several other apps, for example lets say you create a laravel blog, a shop and a social media all in laravel and turn that 3 auth in only one separated auth app that handle the authentication of the previous 3 apps delivering also the roles, permissiones etc. I dont know if is clear
Laravel\ Socialite\ Two\ InvalidStateException
why?
Also getting this error: Laravel\ Socialite\ Two\ InvalidStateException
This worked for me - $user = Socialite::driver('google')->stateless()->user();
excuse me i got error Laravel\Socialite\Two\InvalidStateException, anyone solve this error?
I had the same error; I followed the tutorial again and encountered it once more.
Now I no longer have the issue, but I'm not sure how I fixed it. In my case, I only used Google login, not GitHub. I think that if you follow the tutorial exactly, in the step of creating Google credentials, they are not fully created. You need to close the pop-up that remains open for it to be saved properly.
Also, I recommend you taking screenshots of the errors and uploading them to ChatGPT if you really lost; it might be helpful.
so awesome
Thanks