- Centralized Logto domain and API base URLs in `common.ts` to avoid duplication. - Replaced deprecated `Modal.useModal` with `App.useApp().modal` for consistent Ant Design usage. - Refactored `useAutoLogin` hook to handle token expiration checks and trigger re-authentication. - Updated `UserCenter` and `FavPlayersPage` to use the new `autoSignIn` flow. - Removed the `useAuthHeaders` hook as logic was consolidated into `useAutoLogin`. - Added `AUTH_CALLBACK_URL` and `USER_CENTER_URL` constants for cleaner routing. |
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| bun-env.d.ts | ||
| bun.lock | ||
| bunfig.toml | ||
| docker-compose.yml | ||
| dockerfile | ||
| package.json | ||
| prisma.config.ts | ||
| README.md | ||
| tsconfig.json | ||