chore: prefer errors.is instead of comparison

This commit is contained in:
Stavros
2026-04-29 16:04:27 +03:00
parent a14d64c8ba
commit 373ee8806e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ func (controller *OIDCController) Userinfo(c *gin.Context) {
entry, err := controller.oidc.GetAccessToken(c, controller.oidc.Hash(token))
if err != nil {
if err == service.ErrTokenNotFound {
if errors.Is(err, service.ErrTokenNotFound) {
tlog.App.Warn().Msg("OIDC userinfo accessed with invalid token")
c.JSON(401, gin.H{
"error": "invalid_grant",