From bd53e37c6d890183ea21ebc5306ddeb569f1430e Mon Sep 17 00:00:00 2001 From: Herman Junge Date: Wed, 12 Mar 2014 01:31:24 -0400 Subject: [PATCH] Update README.md `jwt.New()` only returns one parameter, `*Token` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24b60e8..de78ab0 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ This library is considered production ready. Feedback and feature requests are ## Create a token ```go - token, _ := jwt.New(jwt.GetSigningMethod("HS256")) + token := jwt.New(jwt.GetSigningMethod("HS256")) token.Claims["foo"] = "bar" token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix() tokenString, err := token.SignedString(mySigningKey) ``` -Documentation can be found [here](http://godoc.org/github.com/dgrijalva/jwt-go) \ No newline at end of file +Documentation can be found [here](http://godoc.org/github.com/dgrijalva/jwt-go)