Files
sdk-for-flutter/docs/examples/account/delete-authenticator.md
T
2024-02-25 00:29:30 +13:00

418 B

import 'package:appwrite/appwrite.dart';

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

Account account = Account(client);

Future result = account.deleteAuthenticator( type: AuthenticatorType.totp, otp: '', );

result.then((response) { print(response); }).catchError((error) { print(error.response); });