VerifyOption
VerifyOption customizes VerifySession.
VerifyOption customizes VerifySession.
type VerifyOption func(*verifyConfig)Functions#
WithAPIBaseURL#
func WithAPIBaseURL(u string) VerifyOptionWithAPIBaseURL sets the API origin VerifySession calls (self-hosting, tests).
WithHTTPClient#
func WithHTTPClient(hc *http.Client) VerifyOptionWithHTTPClient sets the HTTP client VerifySession uses.
WithRequestTimeout#
func WithRequestTimeout(d time.Duration) VerifyOptionWithRequestTimeout bounds the VerifySession request, including reading the response (PROTOCOL §7.0). The default is 30 s; NoRequestTimeout (or any negative value) disables it. A timeout returns network_error.