Skip to content

Commit cef4764

Browse files
authored
Authenticator: remove jwt.Validate (#91)
jwt.Validate is already called in Verifier, no need to call it twice
1 parent b5d850b commit cef4764

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jwtauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func Authenticator(ja *JWTAuth) func(http.Handler) http.Handler {
180180
return
181181
}
182182

183-
if token == nil || jwt.Validate(token, ja.validateOptions...) != nil {
183+
if token == nil {
184184
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
185185
return
186186
}

0 commit comments

Comments
 (0)