mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: refactor keycache implementation to reduce duplication (#15100)
This commit is contained in:
@ -27,7 +27,7 @@ type DecryptKeyProvider interface {
|
||||
func Encrypt(ctx context.Context, e EncryptKeyProvider, claims Claims) (string, error) {
|
||||
id, key, err := e.EncryptingKey(ctx)
|
||||
if err != nil {
|
||||
return "", xerrors.Errorf("get signing key: %w", err)
|
||||
return "", xerrors.Errorf("encrypting key: %w", err)
|
||||
}
|
||||
|
||||
encrypter, err := jose.NewEncrypter(
|
||||
|
Reference in New Issue
Block a user