Skip to content

Commit

Permalink
Fallback to disk storage if too big for keyring (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrwhite authored Jan 25, 2025
1 parent 21e03dc commit 6726d85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/tokencache/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ func (r *Repository) Save(config tokencache.Config, key tokencache.Key, tokenSet
if errors.Is(err, keyring.ErrUnsupportedPlatform) {
return writeToFile(config, checksum, tokenSet)
}
if errors.Is(err, keyring.ErrSetDataTooBig) {
return writeToFile(config, checksum, tokenSet)
}
return err
}
return nil
Expand Down

0 comments on commit 6726d85

Please sign in to comment.