Skip to content

Implement retry logic for failed authentication attempts#1

Open
cto-new[bot] wants to merge 2 commits into
mainfrom
feat-auth-retry-n-attempts
Open

Implement retry logic for failed authentication attempts#1
cto-new[bot] wants to merge 2 commits into
mainfrom
feat-auth-retry-n-attempts

Conversation

@cto-new

@cto-new cto-new Bot commented Oct 17, 2025

Copy link
Copy Markdown

Summary

Implements a retry mechanism for user authentication, supporting up to three attempts before closing the authentication dialog.

Details

  • Automatically tracks retry count and enforces a three-attempt limit
  • Presents an error message after failed attempts, including attempts remaining
  • Clears password field after each failed attempt for security
  • Dialog closes only upon authentication success or after final failure
  • Authentication is processed in background threads; results are communicated back to the UI via message passing
  • Updated README to reflect implemented feature

Adds support for retrying authentication up to a maximum number of attempts
(default 3) when the initial action fails. Improves user experience by
informing the user of failed attempts and allowing retries before closing
the authentication window.

- Introduce retry_count and max_retries to track attempts per session
- Only close window after max retries exceeded or success
- Show error messages and remaining attempts in UI
- Use message-passing to synchronize thread callbacks with main app

This is a user-visible improvement that helps prevent lockouts and assists
with failed password entries, ensuring a smoother authentication flow.
@manthanabc

Copy link
Copy Markdown
Owner

Get it to build ig

Enable users to retry authentication up to three times before the dialog closes. Displays error messages with remaining attempts and clears the password input after each failure. Ensures authentication is handled in background threads with safe message passing back to the UI.
@manthanabc

Copy link
Copy Markdown
Owner

update: does'nt work yet, stuck at no session for the cookie?
todo: Figure out how re tries should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant