You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tokenstore): adopt shared tokenstore with configurable backends (#13)
* feat(tokenstore): adopt shared tokenstore with configurable backends
- Remove the custom file-based locking implementation and its tests.
- Introduce a shared tokenstore dependency and add keyring-related indirect dependencies.
- Replace manual token file read/write logic with tokenstore abstractions for loading and saving tokens.
- Add a configurable token storage backend with support for auto, file, and OS keyring modes.
- Update CLI flags and configuration to select and initialize the token storage backend.
- Refactor tests to use the new tokenstore API instead of direct file and JSON handling.
- Simplify TUI token types by aliasing them to the shared tokenstore token type.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* test(tokenstore): add unit tests for token store backend selection
- Extract initTokenStore function from initConfig for testability
- Add tests for file, keyring, auto, and invalid token store modes
- Verify correct backend types and fallback warning behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* style(tokenstore): fix golines formatting for long lines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments