mirror of
https://forgejo.merr.is/annika/jwtauth.git
synced 2025-12-11 12:43:14 -05:00
README to note jwt-go dep
This commit is contained in:
parent
db8fa45708
commit
04d0f4ea61
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,11 @@ jwtauth - JWT middleware for Go 1.7+ HTTP services
|
|||
The `jwtauth` middleware is a simple way to verify a JWT token from a request
|
||||
and send the result down the request context (`context.Context`).
|
||||
|
||||
**NOTE:** `jwtauth` requires [v2.7.0](https://github.com/dgrijalva/jwt-go/tree/v2.7.0) of the
|
||||
`github.com/dgrijalva/jwt-go` dependency. Please make sure to vendor the correct version
|
||||
into your project. There is a PR https://github.com/goware/jwtauth/pull/8 to support v3.0.0,
|
||||
and it's quite close, but it needs another review after recent updates to jwt-go.
|
||||
|
||||
This package uses the new `context` package in Go 1.7 also used by `net/http`
|
||||
to manage request contexts.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue