Skip to content

Allow manual OAuth URL entry without waiting full callback timeout - #3

Open
cook1e0 wants to merge 1 commit into
lutzerb:mainfrom
cook1e0:manual-oauth-no-wait
Open

Allow manual OAuth URL entry without waiting full callback timeout#3
cook1e0 wants to merge 1 commit into
lutzerb:mainfrom
cook1e0:manual-oauth-no-wait

Conversation

@cook1e0

@cook1e0 cook1e0 commented Apr 18, 2026

Copy link
Copy Markdown

This change improves the user experience of the manual OAuth fallback.

In the existing auth.py, the code waits the full 120 seconds for an automatic callback before prompting the user to paste the callback URL. On remote servers or SSH‑tunneled setups where the automatic callback cannot reach the container, this forces users to wait unnecessarily.
The patch adds queue to the imports and replaces the blocking wait loop with a concurrent input listener. A background thread listens for manual input while still waiting for the automatic callback, checking both sources and proceeding as soon as either one arrives. If neither a callback nor manual input is received within 120 seconds, it raises an error.

This allows users to paste the callback URL immediately without waiting, while still supporting automatic callbacks when they 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