[BUG] : "Too many authentication attempts" error when interrupting OAuth flow
Bug Description
What happened? When attempting to sign in using GitHub OAuth, if the authentication handshake is interrupted (e.g., clicking the sign-in button, navigating back using the browser button before the flow completes, and immediately trying to sign in again), the platform completely blocks the user. It serves a raw JSON endpoint error on the screen instead of handling the cancelled session gracefully.
What was expected instead? The application should gracefully handle the interrupted flow, clear the broken auth state, and allow the user to retry signing in. If a rate limit is truly necessary, it should redirect the user back to the login page with a clean, user-friendly UI toast notification instead of raw backend JSON.
Steps to Reproduce
- Navigate to the DevTrack login page.
- Click on the "Sign in with GitHub" button. 3.Before the GitHub authorization page fully finishes processing or redirecting, click the browser's Back button to return to DevTrack. 4.Click the "Sign in with GitHub" button a second time. 5.Notice that the application routes directly to /api/auth/signin/github and throws a hard block.
Affected Area
Authentication / Sign-in
Screenshots
file:///home/manaswi/Pictures/Screenshots/Screenshot%20from%202026-06-10%2014-11-57.png
Browser & OS
Ubuntu
Environment
Production (devtrack.site)
Additional Context
No response
Thanks for opening your first issue on DevTrack! 🎉
A maintainer will take a look shortly. In the meantime:
- Check the Contributing guide if you are planning to work on this
- Browse Discussions for Q&A and ideas
- Look for
good first issueif you want somewhere to start
If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project reach more developers!
Hi @Priyanshu-byte-coder! I am @MoonLawlier As a GSSoc'26 contributor, I would like to work on this issue!
Assigned to @MoonLawlier! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Unassigning — no PR has been opened for this and there's been no activity for over a month. Reopening it to the community: first come, first served — comment here to claim it.
i would like to work on this issue under gssoc'26
Assigned to @yachikadev! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Hey @yachikadev — this issue was assigned 7 days ago with no PR opened. Unassigning so others can pick it up.
Still working on it? Drop a comment and request re-assignment.
This issue has been inactive for 21 days. If you are still working on it or it is still relevant, please leave a comment — otherwise it will be closed in 7 days.