Merge pull request #12 from hermanjunge/patch-2

Update README.md
This commit is contained in:
Dave Grijalva 2014-03-12 11:10:35 -07:00
commit 54a180ee40
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ This library is considered production ready. Feedback and feature requests are
return myLookupKey(token.Header["kid"]) return myLookupKey(token.Header["kid"])
}) })
if !err && token.Valid { if err == null && token.Valid {
deliverGoodness("!") deliverGoodness("!")
} else { } else {
deliverUtterRejection(":(") deliverUtterRejection(":(")
@ -26,4 +26,4 @@ This library is considered production ready. Feedback and feature requests are
tokenString, err := token.SignedString(mySigningKey) tokenString, err := token.SignedString(mySigningKey)
``` ```
Documentation can be found [here](http://godoc.org/github.com/dgrijalva/jwt-go) Documentation can be found [here](http://godoc.org/github.com/dgrijalva/jwt-go)