mirror of https://github.com/golang-jwt/jwt.git
Update README.md
This commit is contained in:
parent
0507313841
commit
955b8ff55f
|
@ -1,6 +1,8 @@
|
|||
A [golang](http://www.golang.org) implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-jones-json-web-token.html)
|
||||
|
||||
This library is still a work in progress. Feedback is appreciated. This library supports the parsing and verification as well as the generation and signing of JWTs. Current supported signing algorithms are RSA256 and HMAC SHA256.
|
||||
This library supports the parsing and verification as well as the generation and signing of JWTs. Current supported signing algorithms are RSA256 and HMAC SHA256.
|
||||
|
||||
This library is considered production ready. Feedback and feature requests are appreciated.
|
||||
|
||||
## Parse and Verify
|
||||
|
||||
|
@ -19,4 +21,4 @@ This library is still a work in progress. Feedback is appreciated. This librar
|
|||
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)
|
||||
tokenString, err := token.SignedString(mySigningKey)
|
||||
|
|
Loading…
Reference in New Issue