made permissive default to true

This commit is contained in:
Darko Luketic 2021-11-14 15:54:18 +01:00
parent 0a5b59aa0b
commit 744cecf61d

View File

@ -265,8 +265,8 @@ func WithErrorHandler(opt ErrorHandler) Option {
} }
// WithPermissive allows incoming requests to pass even if the client does not provide a token. // 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) { return func(opts *Options) {
opts.Permissive = opt opts.Permissive = true
} }
} }