documentation

This commit is contained in:
Dave Grijalva 2014-03-09 12:26:36 -07:00
parent a796f21fd5
commit aeec1afe95
1 changed files with 1 additions and 0 deletions

1
jwt.go
View File

@ -156,6 +156,7 @@ func Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
} }
} }
// The errors that might occur when parsing and validating a token
const ( 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