From ef67c9e1306413f9f40ec68a9dc5826366a0ef34 Mon Sep 17 00:00:00 2001 From: ildyria Date: Tue, 5 Jul 2022 10:45:04 +0200 Subject: [PATCH] fixes #6 --- src/Auth/WebAuthnUserProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth/WebAuthnUserProvider.php b/src/Auth/WebAuthnUserProvider.php index 0a3d3b0..dd4e7c0 100644 --- a/src/Auth/WebAuthnUserProvider.php +++ b/src/Auth/WebAuthnUserProvider.php @@ -46,7 +46,7 @@ public function __construct( */ public function retrieveByCredentials(array $credentials) { - if (class_implements($this->model, WebAuthnAuthenticatable::class) && $this->isSignedChallenge($credentials)) { + if (in_array(WebAuthnAuthenticatable::class, class_implements($this->model, true), true) && $this->isSignedChallenge($credentials)) { /** @noinspection PhpIncompatibleReturnTypeInspection */ return $this->newModelQuery() ->whereHas('webAuthnCredentials', static function (Builder $query) use ($credentials): void {