diff --git a/src/Service/TwoFactorAuthenticationService.php b/src/Service/TwoFactorAuthenticationService.php index 2c377a7..835c729 100644 --- a/src/Service/TwoFactorAuthenticationService.php +++ b/src/Service/TwoFactorAuthenticationService.php @@ -106,9 +106,9 @@ public function validateTOTPToken(string $user, $params = null, $opts = null): W * @throws ApiConnectionException * @throws ValidationException */ - public function webAuthNCredentials(string $user, $params = null, $opts = null): Collection2 + public function webAuthNCredentials(string $user, $params = null, $opts = null): WildduckObject { - return $this->requestCollection('get', $this->buildPath('/users/%s/2fa/webauthn/credentials', $user), $params, $opts); + return $this->request('get', $this->buildPath('/users/%s/2fa/webauthn/credentials', $user), $params, $opts); } /**