fix(auth): always get token by id and user id (#4371)

Co-authored-by: Florian Forster <[email protected]>
This commit is contained in:
Silvan
2022-09-15 12:59:40 +00:00
committed by GitHub
co-authored by Florian Forster
parent 7191344817
commit 84b20bc4e1
9 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ func (o *OPStorage) RevokeToken(ctx context.Context, token, userID, clientID str
}
return oidc.ErrServerError().WithParent(err)
}
accessToken, err := o.repo.TokenByID(ctx, userID, token)
accessToken, err := o.repo.TokenByIDs(ctx, userID, token)
if err != nil {
if errors.IsNotFound(err) {
return nil