mirror of
https://github.com/appwrite/appwrite
synced 2026-05-10 02:31:01 +00:00
402 B
402 B
import { Client, Account, AuthenticatorType } from "react-native-appwrite";
const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID
const account = new Account(client);
const result = await account.updateMfaAuthenticator( AuthenticatorType.Totp, // type '' // otp );
console.log(response);