From c5c16083c72ecc8f1b23c6900db6fdb6e48ad741 Mon Sep 17 00:00:00 2001 From: thatderek Date: Sun, 25 Jan 2015 01:25:58 -0500 Subject: [PATCH] Updated token creation example to use the proper method. Example broke with error `undefined: SigningMethodHS256`. Edited to use jwt.SigningMethodHS256 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0a8f9d..7471d1e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Parsing and verifying tokens is pretty straight forward. You pass in the token ```go // Create the token - token := jwt.New(SigningMethodHS256) + token := jwt.New(jwt.SigningMethodHS256) // Set some claims token.Claims["foo"] = "bar" token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()