src-cli icon indicating copy to clipboard operation
src-cli copied to clipboard

feat(oauth): Use keyring to store oauth token

Open burmudar opened this issue 1 month ago • 1 comments

use keyring to store oauth token

add internal/keyring package to use 99designs keyring

  • rename keyring to store
  • make keyring struct src-cli and set label on secret

return Token struct

store token in keyring

create token struct from TokenResponse

  • Token converts expiresIn to a timestamp
  • Store the token with the endpoint suffix

add basic http transport for oauth

OAuth transport and use when available in api client

Test plan

burmudar avatar Dec 08 '25 10:12 burmudar

This change is part of the following stack:

  • #1223
    • #1227
      • #1228 ◀

Change managed by git-spice.

burmudar avatar Dec 08 '25 10:12 burmudar