MCPcopy Create free account
hub / github.com/basecamp/hey-cli / saveToKeyring

Method saveToKeyring

internal/auth/store.go:104–110  ·  view source on GitHub ↗
(origin string, creds *Credentials)

Source from the content-addressed store, hash-verified

102}
103
104func (s *Store) saveToKeyring(origin string, creds *Credentials) error {
105 data, err := json.Marshal(creds) //nolint:gosec // G117: intentional credential marshaling for storage
106 if err != nil {
107 return err
108 }
109 return keyring.Set(serviceName, key(origin), string(data))
110}
111
112func (s *Store) credentialsPath() string {
113 return filepath.Join(s.fallbackDir, "credentials.json")

Callers 2

SaveMethod · 0.95
MigrateToKeyringMethod · 0.95

Calls 1

keyFunction · 0.85

Tested by

no test coverage detected