Laravel 5.5 \ Socialite \ Two \ InvalidStateException

Mar*_*tto 4 laravel-socialite laravel-5.5

直到我更新到Laravel 5.5为止,Socialite的工作都很好。我得到:

\ Socialite \ Two \ InvalidStateException

来自的第209行的Whoops页面错误/Users/marcellopato/Sites/cepcar/vendor/laravel/socialite/src/Two/AbstractProvider.php

if ($this->hasInvalidState()) {
    throw new InvalidStateException;
}
Run Code Online (Sandbox Code Playgroud)

jrr*_*n90 6

试试这个,我正在使用Laravel 5.5:

return Socialite::driver('google')->stateless()->user();
Run Code Online (Sandbox Code Playgroud)

https://laravel.com/docs/5.5/socialite#stateless-authentication