MCPcopy
hub / github.com/golang-jwt/jwt / WithLeeway

Function WithLeeway

parser_option.go:36–40  ·  view source on GitHub ↗

WithLeeway returns the ParserOption for specifying the leeway window.

(leeway time.Duration)

Source from the content-addressed store, hash-verified

34
35// WithLeeway returns the ParserOption for specifying the leeway window.
36func WithLeeway(leeway time.Duration) ParserOption {
37 return func(p *Parser) {
38 p.validator.leeway = leeway
39 }
40}
41
42// WithTimeFunc returns the ParserOption for specifying the time func. The
43// primary use-case for this is testing. If you are looking for a way to account

Callers 1

Calls

no outgoing calls

Tested by 1