some comments
This commit is contained in:
parent
8b1d405f91
commit
b02a2701d3
3 changed files with 10 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue