appwrite/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md
2025-04-22 17:02:33 +04:00

354 B

import Appwrite import AppwriteEnums

let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with

let account = Account(client)

let mfaType = try await account.createMfaAuthenticator( type: .totp )