This seems like an unacceptable problem in the socialite package that has already been resolved in this post .
Some of your users access your site with a different URL ( https://www.example.com or https://example.com ), which causes a "state" mismatch in the sessions.
If you are on Larvel 5.3 or later ... add SESSION_DOMAIN=http://example.com to the .env file
For other versions, go to your config/session.php file and add your domain. 'domain' => 'www.example.com'
To apply changes immediately. Run 'php artisan cache:clear' and 'composer dump-autoload' We hope this should fix the problem.
Waqas bukhary
source share