Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 9, 2024
1 parent 341f76d commit 2a6ec34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils/token/unchecked_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (v *UncheckedValidator) ValidateToken(_ context.Context, token string) (Tok
}
err = jwt.UnsafeClaimsWithoutVerification(&registeredClaims, &azureClaims)
if err != nil {
return nil, http.ForbiddenError(fmt.Sprintf("failed to extract JWT unsafeClaims: %w", err))
return nil, http.ForbiddenError(fmt.Sprintf("failed to extract JWT unsafeClaims: %s", err.Error()))
}

principal := &unchechedClaimsPrincipal{token: token, claims: &registeredClaims, azureClaims: &azureClaims}
Expand Down

0 comments on commit 2a6ec34

Please sign in to comment.