php - Laravel Socialite InvalidStateException on mobile
one text
i'm using github oauth in my web application that i wrote using Laravel.
I pulled my application into production environment and i got this problem.
When i using the application on desktop or laptop there is no problem on login but when i tried to login by mobile with github it gave me that exception. I looked around for solution than i saw "SESSION_DOMAIN" solution but when i tried this solution, my app's sessions stop working and problem on mobile not solved.
When i tried to login with github using Xiaomi's default web browser, i successfully logged in. But when i tried with chrome i got the error again. (Tried with many phones)
Laravel\Socialite\Two\InvalidStateException
vendor/laravel/socialite/src/Two/AbstractProvider.php
Edit: When i tried with chrome 83.0, chrome 97.0, Yandex Browser, Opera and Mozilla there is no problem but when i tried with chrome 93.0 or safari on ios i'm getting this exception.
Source