forked from mirror/jwt
Adding additional bits to mask for various validation errors.
This commit is contained in:
parent
a6f24f4cf0
commit
3eddded2f3
13
errors.go
13
errors.go
|
@ -16,10 +16,15 @@ const (
|
|||
ValidationErrorMalformed uint32 = 1 << iota // Token is malformed
|
||||
ValidationErrorUnverifiable // Token could not be verified because of signing problems
|
||||
ValidationErrorSignatureInvalid // Signature validation failed
|
||||
ValidationErrorExpired // Exp validation failed
|
||||
ValidationErrorNotValidYet // NBF validation failed
|
||||
ValidationErrorIssuedAt // IAT validation failed
|
||||
ValidationErrorClaimsInvalid // Generic claims validation error
|
||||
|
||||
// Standard Claim validation errors
|
||||
ValidationErrorAudience // AUD validation failed
|
||||
ValidationErrorExpired // EXP validation failed
|
||||
ValidationErrorIssuedAt // IAT validation failed
|
||||
ValidationErrorIssuer // ISS validation failed
|
||||
ValidationErrorNotValidYet // NBF validation failed
|
||||
ValidationErrorId // JTI validation failed
|
||||
ValidationErrorClaimsInvalid // Generic claims validation error
|
||||
)
|
||||
|
||||
// The error from Parse if token is not valid
|
||||
|
|
Loading…
Reference in New Issue