{"action":"opened","issue":{"url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/82","labels_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/82/comments","events_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/82/events","html_url":"https://github.com/dgrijalva/jwt-go/issues/82","id":101407849,"number":82,"title":"Error when parse","user":{"login":"tommoholmes10","id":13727401,"avatar_url":"https://avatars.githubusercontent.com/u/13727401?v=3","gravatar_id":"","url":"https://api.github.com/users/tommoholmes10","html_url":"https://github.com/tommoholmes10","followers_url":"https://api.github.com/users/tommoholmes10/followers","following_url":"https://api.github.com/users/tommoholmes10/following{/other_user}","gists_url":"https://api.github.com/users/tommoholmes10/gists{/gist_id}","starred_url":"https://api.github.com/users/tommoholmes10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommoholmes10/subscriptions","organizations_url":"https://api.github.com/users/tommoholmes10/orgs","repos_url":"https://api.github.com/users/tommoholmes10/repos","events_url":"https://api.github.com/users/tommoholmes10/events{/privacy}","received_events_url":"https://api.github.com/users/tommoholmes10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T12:18:54Z","updated_at":"2015-08-17T12:18:54Z","closed_at":null,"body":"I have code like this\r\n```go\r\ntoken := jwt.New(jwt.GetSigningMethod(\"HS256\"))\r\n\ttoken.Claims[\"ID\"] = \"Christopher\"\r\n\ttoken.Claims[\"exp\"] = time.Now().Add(time.Hour * 1).Unix()\r\n\ts, e := token.SignedString([]byte(\"unicornsAreAwesome\"))\r\n\r\n\tif e != nil {\r\n\t\tpanic(e.Error())\r\n\t}\r\n\tfmt.Println(s)\r\n```\r\nwhen I'm running I get\r\n``\r\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6IkNocmlzdG9waGVyIiwiZXhwIjoxNDM5ODE2Njg2fQ.OU2K92mLwEy9hrL-gwiNEm1Rd_vVVCZ0o3mYxdT2e-I\r\n``\r\nbut when I want to parse it with this code\r\n```go\r\nmyToken := \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9leGFtcGxlLm9yZyIsImF1ZCI6Imh0dHA6XC9cL2V4YW1wbGUuY29tIiwiaWF0IjoxMzU2OTk5NTI0LCJuYmYiOjEzNTcwMDAwMDB9.KcNaeDRMPwkRHDHsuIh1L2B01VApiu3aTOkWplFjoYI\"\r\n\ttoken, err := jwt.Parse(myToken, nil)\r\n\r\n\tif err == nil && token.Valid {\r\n\t\tfmt.Println(\"Your token is valid.  I like your style.\")\r\n\t} else {\r\n\t\tfmt.Println(\"This token is terrible!  I cannot accept this.\")\r\n\t}\r\n```\r\nI have ``This token is terrible!  I cannot accept this.``"}}