Skip to content

Commit af7cdb1

Browse files
authored
fix: remove override of configuration (#505)
1 parent 91bd5f2 commit af7cdb1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/WebauthnServiceProvider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public function register(): void
8585
$this->app->singleton(WebauthnFacade::class, Webauthn::class);
8686

8787
$this->registerResponseBindings();
88-
$this->overrideConfiguration();
8988
$this->bindWebAuthnPackage();
9089
$this->bindPsrInterfaces();
9190

@@ -128,17 +127,6 @@ public function registerResponseBindings(): void
128127
$this->app->singleton(FailedKeyConfirmedResponseContract::class, FailedKeyConfirmedResponse::class);
129128
}
130129

131-
/**
132-
* Override the configuration for userless WebAuthn.
133-
*/
134-
protected function overrideConfiguration(): void
135-
{
136-
if (Webauthn::userless()) {
137-
$this->app['config']->set('webauthn.user_verification', 'required');
138-
$this->app['config']->set('webauthn.resident_key', 'required');
139-
}
140-
}
141-
142130
/**
143131
* Bind all the WebAuthn package services to the Service Container.
144132
*/

0 commit comments

Comments
 (0)