@@ -466,13 +466,12 @@ class Account(client: Client) : Service(client) {
466466 *
467467 * @param type Type of authenticator.
468468 * @param otp Valid verification token.
469- * @return [io.appwrite.models.User<T> ]
469+ * @return [Any ]
470470 */
471- suspend fun < T > deleteMfaAuthenticator (
471+ suspend fun deleteMfaAuthenticator (
472472 type : io.appwrite.enums.AuthenticatorType ,
473473 otp : String ,
474- nestedType : Class <T >,
475- ): io.appwrite.models.User <T > {
474+ ): Any {
476475 val apiPath = " /account/mfa/authenticators/{type}"
477476 .replace(" {type}" , type.value)
478477
@@ -482,38 +481,15 @@ class Account(client: Client) : Service(client) {
482481 val apiHeaders = mutableMapOf (
483482 " content-type" to " application/json" ,
484483 )
485- val converter: (Any ) -> io.appwrite.models.User <T > = {
486- @Suppress(" UNCHECKED_CAST" )
487- io.appwrite.models.User .from(map = it as Map <String , Any >, nestedType)
488- }
489484 return client.call(
490485 " DELETE" ,
491486 apiPath,
492487 apiHeaders,
493488 apiParams,
494- responseType = classOf(),
495- converter,
489+ responseType = Any ::class .java,
496490 )
497491 }
498492
499- /* *
500- * Delete Authenticator
501- *
502- * Delete an authenticator for a user by ID.
503- *
504- * @param type Type of authenticator.
505- * @param otp Valid verification token.
506- * @return [io.appwrite.models.User<T>]
507- */
508- @Throws(AppwriteException ::class )
509- suspend fun deleteMfaAuthenticator (
510- type : io.appwrite.enums.AuthenticatorType ,
511- otp : String ,
512- ): io.appwrite.models.User <Map <String , Any >> = deleteMfaAuthenticator(
513- type,
514- otp,
515- nestedType = classOf(),
516- )
517493
518494 /* *
519495 * Create 2FA Challenge
0 commit comments