@@ -466,13 +466,12 @@ class Account(client: Client) : Service(client) {
466
466
*
467
467
* @param type Type of authenticator.
468
468
* @param otp Valid verification token.
469
- * @return [io.appwrite.models.User<T> ]
469
+ * @return [Any ]
470
470
*/
471
- suspend fun < T > deleteMfaAuthenticator (
471
+ suspend fun deleteMfaAuthenticator (
472
472
type : io.appwrite.enums.AuthenticatorType ,
473
473
otp : String ,
474
- nestedType : Class <T >,
475
- ): io.appwrite.models.User <T > {
474
+ ): Any {
476
475
val apiPath = " /account/mfa/authenticators/{type}"
477
476
.replace(" {type}" , type.value)
478
477
@@ -482,38 +481,15 @@ class Account(client: Client) : Service(client) {
482
481
val apiHeaders = mutableMapOf (
483
482
" content-type" to " application/json" ,
484
483
)
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
- }
489
484
return client.call(
490
485
" DELETE" ,
491
486
apiPath,
492
487
apiHeaders,
493
488
apiParams,
494
- responseType = classOf(),
495
- converter,
489
+ responseType = Any ::class .java,
496
490
)
497
491
}
498
492
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
- )
517
493
518
494
/* *
519
495
* Create 2FA Challenge
0 commit comments