Skip to content

Honor disabled timeouts during token refresh - #608

Open
Shubham-Padkonde wants to merge 1 commit into
dropbox:mainfrom
Shubham-Padkonde:fix/refresh-token-timeout
Open

Shubham-Padkonde wants to merge 1 commit into
dropbox:mainfrom
Shubham-Padkonde:fix/refresh-token-timeout

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

A client created with timeout=None documents that requests wait without a socket timeout, but refresh_access_token substitutes DEFAULT_TIMEOUT (100 seconds). Applications that explicitly disable timeouts therefore still time out during token refresh.

Pass the client's stored timeout directly to the refresh POST. The constructor already supplies the default when no override is provided. Regression tests cover None and a numeric override.

Validation: the None case fails before the fix; all 102 unit tests pass afterward. Ruff lint and formatting pass.

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