documentation

This commit is contained in:
Dave Grijalva 2014-06-15 19:40:38 -07:00
parent 6174711902
commit a95c191bb4
1 changed files with 2 additions and 1 deletions

3
jwt.go
View File

@ -20,7 +20,8 @@ var TimeFunc = time.Now
// Header of the token (such as `kid`) to identify which key to use.
type Keyfunc func(*Token) ([]byte, error)
// A JWT Token
// A JWT Token. Different fields will be used depending on whether you're
// creating or parsing/verifying a token.
type Token struct {
Raw string // The raw token. Populated when you Parse a token
Method SigningMethod // The signing method used or to be used