jeudi 29 octobre 2015

InvalidStateException in AbstractProvider.php line 191 with socialite

I only get this error on my local machine when I try to login with google or fb. I'm almost 100% sure my services and session.php are set up correctly. But alas,here we are...

my services.php google settings:

'google' =>[
    'client_id'=> env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => "http://". env('DOMAIN'). "/login/google/callback",
],

my session

'domain'=> 'local.mysite.com'



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/20d1g1R
via IFTTT

1 commentaire:

  1. you should have something like this: $user = Socialite::driver( $provider )->stateless()->user();

    RépondreSupprimer