diff --git a/options/options.go b/options/options.go index ca64575..af1e79c 100644 --- a/options/options.go +++ b/options/options.go @@ -265,8 +265,8 @@ func WithErrorHandler(opt ErrorHandler) Option { } // WithPermissive allows incoming requests to pass even if the client does not provide a token. -func WithPermissive(opt bool) Option { +func WithPermissive() Option { return func(opts *Options) { - opts.Permissive = opt + opts.Permissive = true } }