mirror of
https://forgejo.merr.is/annika/jwtauth.git
synced 2025-12-11 11:16:32 -05:00
update docs
This commit is contained in:
parent
c5c2c95d0a
commit
36417065f8
1 changed files with 2 additions and 3 deletions
|
|
@ -47,9 +47,8 @@ func New(alg string, signKey interface{}, verifyKey interface{}) *JWTAuth {
|
|||
// Verifier http middleware handler will verify a JWT string from a http request.
|
||||
//
|
||||
// Verifier will search for a JWT token in a http request, in the order:
|
||||
// 1. 'jwt' URI query parameter
|
||||
// 2. 'Authorization: BEARER T' request header
|
||||
// 3. Cookie 'jwt' value
|
||||
// 1. 'Authorization: BEARER T' request header
|
||||
// 2. Cookie 'jwt' value
|
||||
//
|
||||
// The first JWT string that is found as a query parameter, authorization header
|
||||
// or cookie header is then decoded by the `jwt-go` library and a *jwt.Token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue