invisnik / laravel-steam-auth

Laravel Steam Auth
MIT License
172 stars 67 forks source link

Session dies after a refresh #120

Open futurezuber opened 4 years ago

futurezuber commented 4 years ago

After successfully logging in via steam and pressing f5 key the session dies..

DubStepMad commented 4 years ago

I believe you might be mistaken here as I am having a similar issues but have been able to narrow it down a little more.

Laravel Version: 7 PHP Version: 7.4.2

The Authenticate middleware expects a JSON response within the $request yet after doing Auth::login($user, true); this JSON value is null so in the middleware it redirects back to the landing page asking you to sign in yet again.

However if you close your browser down and open it again it solves this issue which is weird.

@invisnik

laspi94 commented 3 years ago

any solution?