src-cli
src-cli copied to clipboard
feat(oauth): Use keyring to store oauth token
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