Laravel Socialite Login with Google Account

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 20

  • @PriyankaPatel-iw2fc
    @PriyankaPatel-iw2fc 2 месяца назад +1

    Simple step by step explained. Thank you

  • @papiyade8155
    @papiyade8155 21 день назад +1

    so very nice, we're waiting for facebook login

    • @savanihd
      @savanihd  21 день назад

      Sure man. Will come soon.

  • @divyasivakumar.8470
    @divyasivakumar.8470 Месяц назад +1

    Sir im getting error on callback fun
    Laravel\socialite\Two\InvalidStateException

    • @savanihd
      @savanihd  Месяц назад

      You need to make sure your site URL is correct. If it's with www. then add it as well.

    • @divyasivakumar.8470
      @divyasivakumar.8470 Месяц назад

      @@savanihd
      No I'm using localhost sir

    • @savanihd
      @savanihd  Месяц назад

      Got it. Can you try this way: Socialite::driver('google')->stateless()->user() on your method.

    • @divyasivakumar.8470
      @divyasivakumar.8470 Месяц назад +1

      @@savanihd tq sir working

    • @savanihd
      @savanihd  Месяц назад

      @@divyasivakumar.8470 Thank you

  • @willysumbayak9466
    @willysumbayak9466 2 месяца назад

    I have followed all your steps, but when I log in with Google, I get a message saying 'not found - the requested URL was not found on this server.'

    • @savanihd
      @savanihd  2 месяца назад

      Have you setup same call back url on Google Developer Account and .env file?

  • @hyperannatv3387
    @hyperannatv3387 2 месяца назад +1

    do u have udemy courses in laravel?

    • @savanihd
      @savanihd  2 месяца назад

      No Man, Right now i don't have Udemy courses.

  • @johnston777
    @johnston777 2 месяца назад

    i face an error when click the login:
    Error 400: invalid_request
    Request details: flowName=GeneralOAuthFlow

    • @savanihd
      @savanihd  2 месяца назад

      Have you follow all the steps that i showed?

    • @johnston777
      @johnston777 2 месяца назад

      @@savanihd yes, now it works after just run php artisan optimize. it is weird.