1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

docs: Added comment about TokenLookup

Signed-off-by: Kaan Karakaya <yusufkaan142@gmail.com>
This commit is contained in:
Kaan Karakaya 2021-05-26 09:11:22 +03:00 committed by Martti T
parent 7846e3fa6b
commit 379bdeaa1e

View File

@ -53,7 +53,7 @@ type (
// Optional. Default value jwt.MapClaims
Claims jwt.Claims
// TokenLookup is a string in the form of "<source>:<name>" that is used
// TokenLookup is a string in the form of "<source>:<name>" or "<source>:<name>,<source>:<name>" that is used
// to extract token from the request.
// Optional. Default value "header:Authorization".
// Possible values:
@ -62,6 +62,9 @@ type (
// - "param:<name>"
// - "cookie:<name>"
// - "form:<name>"
// Multiply sources example:
// - "header: Authorization,cookie: myowncookie"
TokenLookup string
// AuthScheme to be used in the Authorization header.