Skip to content

Commit

Permalink
chore(appx): log jwt error
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Aug 25, 2023
1 parent 6fb13c1 commit 20e5d57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appx/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/auth0/go-jwt-middleware/v2/jwks"
"github.com/auth0/go-jwt-middleware/v2/validator"
"github.com/golang-jwt/jwt"
"github.com/reearth/reearthx/log"
"github.com/reearth/reearthx/util"
"github.com/samber/lo"
)
Expand Down Expand Up @@ -102,6 +103,9 @@ func (mv MultiValidator) ValidateToken(ctx context.Context, tokenString string)
return
}
}

log.Errorfc(ctx, "auth: invalid JWT: %v", err)
log.Debugfc(ctx, "auth: JWT: %s", tokenString)
return
}

Expand Down

0 comments on commit 20e5d57

Please sign in to comment.