Closed ad-mos closed 2 years ago
Hi There!
Actually, it was changed here: https://github.com/swooletw/laravel-swoole/commit/3a93e92c8b8ad5eed8bbdf4398faa22bdef48b4f
Did you see my commit? It rollback your change, because it totally broke laravel auth. Putting Auth instance in pre_resolved array makes it the same instance between different user requests.
@Arkanius Tested on clean Laravel 8 install.
Hi @albertcht, can you please take a look on this?
You're saying that you are getting the same user authenticated in all requests?
Currenly auth instance is resseting after swoole reload/restart, and after user login - it shares auth across all other requests.
This commit fixes: 1) Logout user after swoole reload 2) Share auth instance across all requests