Socialite: InvalidStateException in AbstractProvider.php line 191

亡梦爱人 提交于 2019-12-11 06:26:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!