From 2087032ddc7f9876af85c9214f36ce1a9cbc0060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joosep=20J=C3=B5eleht?= Date: Wed, 11 May 2022 14:30:44 +0300 Subject: [PATCH] release(1.3.1) - Fixed WebAuthnCredentials request return type --- composer.json | 2 +- src/Service/TwoFactorAuthenticationService.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0d7d389..b379078 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "", "type": "library", "license": "EUPL-1.1", - "version": "1.3.0", + "version": "1.3.1", "require": { "php": "^7.4|^8.0|^8.1", "ext-curl": "*", diff --git a/src/Service/TwoFactorAuthenticationService.php b/src/Service/TwoFactorAuthenticationService.php index 8e418b5..2c377a7 100644 --- a/src/Service/TwoFactorAuthenticationService.php +++ b/src/Service/TwoFactorAuthenticationService.php @@ -2,6 +2,7 @@ namespace Zone\Wildduck\Service; +use Zone\Wildduck\Collection2; use Zone\Wildduck\Exception\ApiConnectionException; use Zone\Wildduck\Exception\AuthenticationFailedException; use Zone\Wildduck\Exception\InvalidAccessTokenException; @@ -105,7 +106,7 @@ public function validateTOTPToken(string $user, $params = null, $opts = null): W * @throws ApiConnectionException * @throws ValidationException */ - public function webAuthNCredentials(string $user, $params = null, $opts = null): WildduckObject + public function webAuthNCredentials(string $user, $params = null, $opts = null): Collection2 { return $this->requestCollection('get', $this->buildPath('/users/%s/2fa/webauthn/credentials', $user), $params, $opts); }