Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Clear auth instance on every requests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ad-mos authored Oct 24, 2021
1 parent 29c6bfa commit 82687eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/swoole_http.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
'pre_resolved' => [
'view', 'files', 'session', 'session.store', 'routes',
'db', 'db.factory', 'cache', 'cache.store', 'config', 'cookie',
'encrypter', 'hash', 'router', 'translator', 'url', 'log', 'auth',
'encrypter', 'hash', 'router', 'translator', 'url', 'log',
],

/*
Expand All @@ -90,7 +90,7 @@
|--------------------------------------------------------------------------
*/
'instances' => [
//
'auth',
],

/*
Expand Down

0 comments on commit 82687eb

Please sign in to comment.