From 2827deb72f662b217ce7f8f7b3d53ab6e60b3cc7 Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Tue, 17 Apr 2012 23:25:22 -0700 Subject: [PATCH] some bad documentation --- jwt.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jwt.go b/jwt.go index 9931179..4e3f393 100644 --- a/jwt.go +++ b/jwt.go @@ -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 {