Laravel 5.5 \Socialite\Two\InvalidStateException

Laravel 5.5 \Socialite\Two\InvalidStateException

社交名流工作得很好,直到我更新到 Laravel 5.5。我得到一个:

\Socialite\Two\InvalidStateException

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

if ($this->hasInvalidState()) {
    throw new InvalidStateException;
}

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

return Socialite::driver('google')->stateless()->user();

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