From 4f747bdadca41377a75f71509a9a52cc2c4cfab7 Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Wed, 17 Nov 2021 11:47:46 +0100 Subject: [PATCH] refactored WithPermissive to IsPermissive --- options/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options/options.go b/options/options.go index 66e3d11..cf80c21 100644 --- a/options/options.go +++ b/options/options.go @@ -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 }