From 379bdeaa1ef5e29cbcab2da2d4728c5e6f984ce8 Mon Sep 17 00:00:00 2001 From: Kaan Karakaya Date: Wed, 26 May 2021 09:11:22 +0300 Subject: [PATCH] docs: Added comment about TokenLookup Signed-off-by: Kaan Karakaya --- middleware/jwt.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.