some comments

This commit is contained in:
Livio Amstutz 2022-04-06 11:13:07 +02:00
parent 8b1d405f91
commit b02a2701d3
No known key found for this signature in database
GPG key ID: 26BB1C2FA5952CF0
3 changed files with 10 additions and 2 deletions

View file

@ -379,6 +379,9 @@ func (s *storage) GetKeyByIDAndUserID(ctx context.Context, keyID, userID string)
return nil, fmt.Errorf("user not found")
}
key, ok := service.keys[keyID]
if !ok {
return nil, fmt.Errorf("key not found")
}
return &jose.JSONWebKey{
KeyID: keyID,
Use: "sig",