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