Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks!
(Any non-English issues will be closed immediately.)
Please provide your PHP and Swoole version. (php -v and php --ri swoole)
PHP 7.4.18
Swoole Version => 4.6.7
Please provide your Laravel/Lumen version.
Laravel v8.32.1
Which release version of this package are you using?
"laravel/sanctum": "^2.9"
"swooletw/laravel-swoole": "^2.8"
What did you do? If possible, provide a recipe for reproducing the error.
when i use the sanctum provide bearer token to get user information, only when the token is run for the first time, user information can be obtained normally, but when I want to obtain new user information for the second time by another bearer token, the old information is returned. If I send the wrong bearer token, it still responds to my number one. User data sent this time, I guess swoole only executes Auth::resolve() once. How can i solve it?
What did you expect to see?
I expect that when I use bearer tokens of different users, I can get different user information instead of sending back to me the old ones all the time. Even if it’s a wrong bearer token, it won’t report an error.
What did you see instead?
I see it is swoole's problem, but i can't solve it.
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
Please provide your PHP and Swoole version. (
php -v
andphp --ri swoole
) PHP 7.4.18 Swoole Version => 4.6.7Please provide your Laravel/Lumen version. Laravel v8.32.1
Which release version of this package are you using? "laravel/sanctum": "^2.9" "swooletw/laravel-swoole": "^2.8"
What did you do? If possible, provide a recipe for reproducing the error. when i use the sanctum provide bearer token to get user information, only when the token is run for the first time, user information can be obtained normally, but when I want to obtain new user information for the second time by another bearer token, the old information is returned. If I send the wrong bearer token, it still responds to my number one. User data sent this time, I guess swoole only executes Auth::resolve() once. How can i solve it?
What did you expect to see? I expect that when I use bearer tokens of different users, I can get different user information instead of sending back to me the old ones all the time. Even if it’s a wrong bearer token, it won’t report an error.
What did you see instead? I see it is swoole's problem, but i can't solve it.