Bug: 401 console error on protected routes before auth redirect #153
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Discovered during spike #150 — parent login flow validation.
Repo
forgejo_admin/westside-landingWhat Broke
Navigating directly to a protected route (e.g.
/my-players) while unauthenticated causes the page component'sonMountto fire an API call before the layout's auth guard redirects to/signin. Results in a 401 console error. Not a security issue — API correctly rejects — but noisy.Repro Steps
https://westsidekingsandqueens.tail5b443a.ts.net/my-playerswhile not logged in/signin(correct) but console shows 401 for/account/playersExpected Behavior
No API calls fire before auth guard determines user is unauthenticated.
Environment
Acceptance Criteria
/signinstill worksRelated
project-westside-basketballforgejo_admin/westside-landing #150