Refactor authentication handling and update loading components

The authentication handling logic in the middleware.ts file was refactored to improve clarity and control flow. In addition, the loading component, previously located in the main app directory, has been deleted and recreated specifically for admin use. The list of private path prefixes has been updated in the use-auth-change-listener.ts file to reflect these changes.
This commit is contained in:
giancarlo
2024-04-28 21:09:12 +07:00
parent 1009685efd
commit b65e1dacc7
4 changed files with 11 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
import { GlobalLoader } from '@kit/ui/global-loader';
export default GlobalLoader;