Skip to content

feat: add timeout to authenticated api endpoint#2001

Open
mxatmx wants to merge 1 commit intocgwire:mainfrom
mxatmx:feat/auth-timeout
Open

feat: add timeout to authenticated api endpoint#2001
mxatmx wants to merge 1 commit intocgwire:mainfrom
mxatmx:feat/auth-timeout

Conversation

@mxatmx
Copy link
Copy Markdown
Contributor

@mxatmx mxatmx commented Apr 30, 2026

Problem
The authenticated API can hang indefinitely.

Solution
Adds a 10 second timeout to the /api/auth/authenticated endpoint.

@NicoPennec
Copy link
Copy Markdown
Member

NicoPennec commented May 4, 2026

Thank you for your improvement.

One minor drawback: 10 seconds might not be enough. A brief network interruption (VPN, mobile network, or cold restart) could cause the user to be disconnected.

Would a 20 or 30 second delay, or a single retry before the USER_LOGIN_FAIL error, be a good trade-off?

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.

2 participants