AOSSIE-Org / AOSSIE-Org/DebateAI
[BUG]: Auth failure redirects to /login, but no /login route exists
- 主要语言
- TypeScript
- 星标
- 84
- 派生
- 198
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 30
描述
### Bug Description
## Description
`frontend/src/context/authContext.tsx` line 69 navigates to `/login` when token verification fails, but `App.tsx` defines no `/login` route. The navigation falls through the `*` catch-all (App.tsx line 105) and lands on `/`.
## Impact
A user with an expired/invalid token is silently dumped on the home page instead of the auth screen, with no indication they were logged out.
## Suggested Fix
Redirect to the actual auth route (`/auth` — see App.tsx route list), or add a `/login` alias route.
### Steps to Reproduce
_No response_
### Logs and Screenshots
_No response_
### Environment Details
_No response_
### Impact
High - Major feature is broken
### Code of Conduct
- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start in frontend/src/context/authContext.tsx at line 69, then inspect the route list and catch-all in App.tsx, including line 105. Update the failed-token navigation to use the existing /auth route, and verify that an expired or invalid token reaches the auth screen instead of /.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 84/100