ZIm/crates/cloud_api_client
Antonio Scandurra 7217439c97
Don't trigger authentication flow unless credentials expired (#35570)
This fixes a regression introduced in
https://github.com/zed-industries/zed/pull/35471, where we treated
stored credentials as invalid when failing to retrieve the authenticated
user for any reason. This had the side effect of triggering the auth
flow even when e.g. the client/server had temporary networking issues.

This pull request changes the logic to only trigger authentication when
getting a 401 from the server.

Release Notes:

- N/A
2025-08-04 08:41:23 +00:00
..
src Don't trigger authentication flow unless credentials expired (#35570) 2025-08-04 08:41:23 +00:00
Cargo.toml Add cloud_api_client and cloud_api_types crates (#35357) 2025-07-30 18:57:51 +00:00
LICENSE-APACHE Add cloud_api_client and cloud_api_types crates (#35357) 2025-07-30 18:57:51 +00:00