Treat unavailable keychains as missing tokens #102

Merged
stephen merged 1 commit from fix/96-keychain-fallback into main 2026-06-10 23:36:14 +00:00
Owner

Summary

  • Treat keyring NoStorageAccess and PlatformFailure as absent tokens in load_token, including failures while opening the keychain entry.
  • Keep unexpected keyring errors explicit and propagating.
  • Emit the underlying platform cause to stderr when --debug is enabled before falling back to Ok(None).

Tests

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all

Fixes rasterstate/fj#96.

## Summary - Treat keyring NoStorageAccess and PlatformFailure as absent tokens in `load_token`, including failures while opening the keychain entry. - Keep unexpected keyring errors explicit and propagating. - Emit the underlying platform cause to stderr when `--debug` is enabled before falling back to `Ok(None)`. ## Tests - `cargo fmt --check` - `cargo clippy --all-targets --all-features -- -D warnings` - `cargo test --all` Fixes rasterstate/fj#96.
Treat unavailable keychains as missing tokens
All checks were successful
ci / check (pull_request) Successful in 9m51s
ci / coverage (pull_request) Successful in 1m47s
ci / live-e2e (pull_request) Successful in 1m43s
676c1de85e
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj!102
No description provided.