Skip to content

Commit 2117ba9

Browse files
authored
Merge branch 'main' into dev
2 parents 456310c + 788ce89 commit 2117ba9

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

Sources/Appwrite/Services/Users.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,30 @@ open class Users: Service {
12351235
method: "DELETE",
12361236
path: apiPath,
12371237
headers: apiHeaders,
1238-
params: apiParams )
1238+
params: apiParams,
1239+
converter: converter
1240+
)
1241+
}
1242+
1243+
///
1244+
/// Delete authenticator
1245+
///
1246+
/// Delete an authenticator app.
1247+
///
1248+
/// @param String userId
1249+
/// @param AppwriteEnums.AuthenticatorType type
1250+
/// @throws Exception
1251+
/// @return array
1252+
///
1253+
open func deleteMfaAuthenticator(
1254+
userId: String,
1255+
type: AppwriteEnums.AuthenticatorType
1256+
) async throws -> AppwriteModels.User<[String: AnyCodable]> {
1257+
return try await deleteMfaAuthenticator(
1258+
userId: userId,
1259+
type: type,
1260+
nestedType: [String: AnyCodable].self
1261+
)
12391262
}
12401263

12411264
///

0 commit comments

Comments
 (0)