Xin Wang 0fa02cc563 Refactor authentication redirection logic
- Introduce a new `auth-redirect` module to manage safe return paths for login and redirection.
- Update the login page to utilize `readReturnToFromLocation` for redirecting users post-login.
- Modify the `AuthGate` component to use `loginPathWithReturnTo` for redirecting unauthorized users, enhancing security and user experience.
- Adjust API request handling to incorporate the new redirection logic, ensuring users are directed to the appropriate login page with return paths.
2026-07-10 10:44:33 +08:00
Description
No description provided
2.1 MiB
Languages
TypeScript 50.2%
Python 27.7%
JavaScript 20.5%
CSS 0.8%
Makefile 0.4%
Other 0.3%