devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[BUG] : "Too many authentication attempts" error when interrupting OAuth flow

Open MoonLawlier opened this issue 5 months ago • 8 comments

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

  1. Navigate to the DevTrack login page.
  2. 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

MoonLawlier avatar Jun 10 '26 10:06 MoonLawlier

Thanks for opening your first issue on DevTrack! 🎉

A maintainer will take a look shortly. In the meantime:

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project reach more developers!

github-actions[bot] avatar Jun 10 '26 10:06 github-actions[bot]

Hi @Priyanshu-byte-coder! I am @MoonLawlier As a GSSoc'26 contributor, I would like to work on this issue!

MoonLawlier avatar Jun 10 '26 10:06 MoonLawlier

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!

github-actions[bot] avatar Jun 10 '26 10:06 github-actions[bot]

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.

Priyanshu-byte-coder avatar Jul 29 '26 17:07 Priyanshu-byte-coder

i would like to work on this issue under gssoc'26

yachikadev avatar Aug 03 '26 16:08 yachikadev

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!

github-actions[bot] avatar Aug 03 '26 16:08 github-actions[bot]

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.

github-actions[bot] avatar Sep 09 '26 07:09 github-actions[bot]

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.

github-actions[bot] avatar Nov 15 '26 04:11 github-actions[bot]