You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/io/appwrite/services/Account.kt
+7-31Lines changed: 7 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,7 @@ class Account(client: Client) : Service(client) {
363
363
/**
364
364
* Add Authenticator
365
365
*
366
-
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator) method.
366
+
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
367
367
*
368
368
* @param type Type of authenticator. Must be `totp`
369
369
* @return [io.appwrite.models.MfaType]
@@ -396,7 +396,7 @@ class Account(client: Client) : Service(client) {
396
396
/**
397
397
* Verify Authenticator
398
398
*
399
-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
399
+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
400
400
*
401
401
* @param type Type of authenticator.
402
402
* @param otp Valid verification token.
@@ -433,7 +433,7 @@ class Account(client: Client) : Service(client) {
433
433
/**
434
434
* Verify Authenticator
435
435
*
436
-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
436
+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
437
437
*
438
438
* @param type Type of authenticator.
439
439
* @param otp Valid verification token.
@@ -456,14 +456,13 @@ class Account(client: Client) : Service(client) {
456
456
*
457
457
* @param type Type of authenticator.
458
458
* @param otp Valid verification token.
459
-
* @return [io.appwrite.models.User<T>]
459
+
* @return [Any]
460
460
*/
461
461
@Throws(AppwriteException::class)
462
-
suspendfun<T> deleteMfaAuthenticator(
462
+
suspendfundeleteMfaAuthenticator(
463
463
type: io.appwrite.enums.AuthenticatorType,
464
464
otp:String,
465
-
nestedType:Class<T>,
466
-
): io.appwrite.models.User<T> {
465
+
): Any {
467
466
val apiPath ="/account/mfa/authenticators/{type}"
468
467
.replace("{type}", type.value)
469
468
@@ -473,38 +472,15 @@ class Account(client: Client) : Service(client) {
473
472
val apiHeaders =mutableMapOf(
474
473
"content-type" to "application/json",
475
474
)
476
-
val converter: (Any) -> io.appwrite.models.User<T> = {
477
-
io.appwrite.models.User.from(map = it asMap<String, Any>, nestedType)
0 commit comments