some bad documentation

This commit is contained in:
Dave Grijalva 2012-04-17 23:25:22 -07:00
parent 97424f0088
commit 2827deb72f
1 changed files with 3 additions and 0 deletions

3
jwt.go
View File

@ -17,6 +17,9 @@ type Token struct {
Valid bool
}
// Parse, validate, and return a token.
// keyFunc will receive the parsed token and should return the key for validating.
// If everything is kosher, err will be nil
func Parse(tokenString string, keyFunc func(*Token)([]byte, error)) (token *Token, err error) {
parts := strings.Split(tokenString, ".")
if len(parts) == 3 {