update docs

This commit is contained in:
Peter Kieltyka 2023-01-03 12:16:33 -05:00
parent c5c2c95d0a
commit 36417065f8

View file

@ -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