appwrite/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md
2024-08-21 14:46:51 +05:30

323 B

import 'package:appwrite/appwrite.dart';

Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID

Account account = Account(client);

MfaType result = await account.createMfaAuthenticator( type: AuthenticatorType.totp, );