Closed ad-mos closed 2 years ago
So, when you tested you got the same user at every requests?
Yes, because Auth is pre-resolved instance currently.
please accept this pull request. Its resolve problem with auth last user on every requests.
@
So, when you tested you got the same user at every requests?
I have the same problem. The first logged-in user for each request is stored in memory
Sorry for my late response guys. Have being really busy.
Please, if you could, check it out on master to see if your issue is solved.
I'll wait your responses to release the new version
Currenly auth instance is setting after swoole reload/restart, so user auth shares across all other requests.
It's rollback for commit 3a93e92c8b8ad5eed8bbdf4398faa22bdef48b4f by @Arkanius Putting Auth instance in pre_resolved array makes it the same instance between different user requests. Tested on clean Laravel 8 install.
This commit fixes: 1) Logout user after swoole reload 2) Share auth instance across all requests
Take a look into documentation:![image](https://user-images.githubusercontent.com/22893424/140653742-481a77ed-c59f-45c0-929b-4e2afd4561cd.png)
And into code of
SwooleTW\Http\Concerns\WithApplication