diff --git a/middleware/jwt.go b/middleware/jwt.go index cd35b621..6c8bcebb 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -53,7 +53,7 @@ type ( // Optional. Default value jwt.MapClaims Claims jwt.Claims - // TokenLookup is a string in the form of ":" that is used + // TokenLookup is a string in the form of ":" or ":,:" that is used // to extract token from the request. // Optional. Default value "header:Authorization". // Possible values: @@ -62,6 +62,9 @@ type ( // - "param:" // - "cookie:" // - "form:" + // Multiply sources example: + // - "header: Authorization,cookie: myowncookie" + TokenLookup string // AuthScheme to be used in the Authorization header.