refactored WithPermissive to IsPermissive

This commit is contained in:
Darko Luketic 2021-11-17 11:47:46 +01:00
parent 80a4493f22
commit 4f747bdadc
1 changed files with 2 additions and 2 deletions

View File

@ -273,8 +273,8 @@ func WithErrorHandler(opt ErrorHandler) Option {
}
}
// WithPermissive allows incoming requests to pass even if the client does not provide a token.
func WithPermissive() Option {
// IsPermissive allows incoming requests to pass even if the client does not provide a token.
func IsPermissive() Option {
return func(opts *Options) {
opts.Permissive = true
}