Add Github and Google authentication to your Laravel application

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • Code snippets: tallpad.com/se...

КОМЕНТАРІ • 11

  • @misbahansori
    @misbahansori 2 роки тому +2

    Nice tutorial 👍

  • @oketafred
    @oketafred 2 роки тому +2

    Nice tutorial

  •  2 роки тому +3

    Awesome, thank you!

  • @wahyunurarizky1911
    @wahyunurarizky1911 2 роки тому +1

    very nice tutorialssss

  •  2 роки тому +1

    In the past, it was nearly impossible to get the oauth user email from Twitter.

  • @timwong2396
    @timwong2396 Рік тому

    Thank You , nice tutorial !!

  • @AksoomHussain7866
    @AksoomHussain7866 2 роки тому +1

    is it fine to have updateOrCreate on user so they have flexibility to have different ways either password or social login? or there is some catch

    • @cdruc
      @cdruc  2 роки тому +2

      I guess it's ok - the assumption here is that the provider has already verified the e-mail address being used.
      And there's another catch:
      You should reset the user password and clear all their auth sessions if you find an account where they haven't verified their e-mail to avoid a highjacking (account created by ill-intentioned user using your e-mail, you signing in with your social, then the ill-intentioned user can login using the password).
      Some pseudo code:
      $user = User::findByEmail('$socialiteUser->getEmail());
      if (!$user->hasVerifiedEmail()) {
      // reset password, clear auth sessions
      } else {
      // user is new, just create it and set their email_verified_at to now()
      }

  • @vladyslav.ishchuk
    @vladyslav.ishchuk 2 роки тому

    It does not work with laravel jetstream (can't login)
    I know about socialstream package, but I want do it by myself

  • @alaadq8130
    @alaadq8130 2 роки тому

    What if we have spreated frontend server like Vue spa app
    How we can setup the flow??

  • @mibrahim4245
    @mibrahim4245 2 роки тому

    Thanks a lot ..
    side question .. how do you make that default profile picture with the letters of the username ..
    Thanks