From b9346099500de16d36d3bcafe5b6aaa66b5b765f Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 21 Dec 2022 16:34:32 +0900 Subject: [PATCH] Update Extractors binding --- src/Auth0Module.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Auth0Module.php b/src/Auth0Module.php index 82db7c0..8c03b5d 100644 --- a/src/Auth0Module.php +++ b/src/Auth0Module.php @@ -38,7 +38,9 @@ protected function configure() : void $this->bind()->annotatedWith(Auth0Config::class)->toInstance($this->config); $this->bind(AuthInterface::class)->to(Auth::class)->in(Scope::SINGLETON); - $this->bind()->annotatedWith(Extractors::class)->to(AuthorizationHeaderTokenExtractor::class); + $this->bind()->annotatedWith(Extractors::class)->toInstance([ + new AuthorizationHeaderTokenExtractor + ]); $this->bind(TokenExtractorResolver::class)->in(Scope::SINGLETON); $this->bind(Management::class)->toProvider(ManagementClientProvider::class); $this->bind(Authentication::class)->toProvider(AuthenticationClientProvider::class);