diff --git a/src/Appwrite/Specification/Format.php b/src/Appwrite/Specification/Format.php index 9ddcbccdf6..726aeb328c 100644 --- a/src/Appwrite/Specification/Format.php +++ b/src/Appwrite/Specification/Format.php @@ -125,17 +125,14 @@ abstract class Format case 'verifyAuthenticator': case 'deleteAuthenticator': switch ($param) { - case 'factor': - return 'AuthenticatorFactor'; - case 'provider': - return 'AuthenticatorProvider'; + case 'type': + return 'AuthenticatorType'; } break; - case 'createChallenge': - case 'verifyChallenge': + case 'create2FAChallenge': switch ($param) { - case 'provider': - return 'AuthenticatorProvider'; + case 'factor': + return 'AuthenticationFactor'; } break; } @@ -322,10 +319,8 @@ abstract class Format break; case 'deleteAuthenticator': switch ($param) { - case 'factor': - return 'AuthenticatorFactor'; - case 'provider': - return 'AuthenticatorProvider'; + case 'type': + return 'AuthenticatorType'; } break; case 'createTarget':