Open JunNishimura opened 5 months ago
Fixes #88
TokenFromCookieWith
TokenFromQueryWith
func Verifier(ja *JWTAuth) func(http.Handler) http.Handler { return func(next http.Handler) http.Handler { return Verify(ja, TokenFromQueryWith("custom-param"), TokenFromHeader, TokenFromCookieWith("custom-cookie"))(next) } }
Fixes #88
TokenFromCookieWith
to retrieve jwt from a cookie with a name passed as an argument.TokenFromQueryWith
to retrieve jwt from a query with a name passed as an argument.How to Use