Skip to content

Commit

Permalink
fix incorrect error checking for NBF (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
husseinmkwizu authored Feb 3, 2020
1 parent 38b5b1f commit b14bfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwtauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func VerifyRequest(ja *JWTAuth, r *http.Request, findTokenFns ...func(r *http.Re
return token, ErrExpired
} else if verr.Errors&jwt.ValidationErrorIssuedAt > 0 {
return token, ErrIATInvalid
} else if verr.Errors&jwt.ValidationErrorIssuedAt > 0 {
} else if verr.Errors&jwt.ValidationErrorNotValidYet > 0 {
return token, ErrNBFInvalid
}
}
Expand Down

0 comments on commit b14bfcd

Please sign in to comment.