Laravel 5.5 \ Socialite \ Two \ InvalidStateException [英] Laravel 5.5 \Socialite\Two\InvalidStateException
本文介绍了Laravel 5.5 \ Socialite \ Two \ InvalidStateException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我更新为Laravel 5.5之前,Socialite都运行良好.我得到一个:
Socialite was working just fine until I updated to Laravel 5.5. I am getting a:
\ Socialite \ Two \ InvalidStateException
\Socialite\Two\InvalidStateException
第209行上的
if ($this->hasInvalidState()) {
throw new InvalidStateException;
}
推荐答案
尝试一下,我正在使用Laravel 5.5:
Try this, I'm using Laravel 5.5:
return Socialite::driver('google')->stateless()->user();
https://laravel.com/docs/5.5/socialite#stateless-authentication
这篇关于Laravel 5.5 \ Socialite \ Two \ InvalidStateException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文