问题
I have the same issue. But I don't know what I have to do.
Socialite works at the localhost, but on the webserver it doesn't work. Laravel 5.4.
This stroke returns null at the AbstractProvider.php:
$state = $this->request->session()->pull('state');
回答1:
Did you use asPopup
method? Try save session then session()->save();
or you just can try this:
session()->put('state', request()->input('state'));
Socialite::driver('facebook')->user();
来源:https://stackoverflow.com/questions/42153717/socialite-invalidstateexception-in-abstractprovider-php-line-191