Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Account → Update MFA Authenticator

AI-generated

Overview

This node operation updates the Multi-Factor Authentication (MFA) authenticator for an account in the Appwrite platform. It is useful for scenarios where a user needs to change or refresh their MFA settings, such as switching to a new authenticator app or revalidating their current MFA setup. For example, a user might update their MFA authenticator after installing a new authenticator app or after a security policy update requiring re-authentication.

Use Case Examples

  1. Updating the MFA authenticator type to TOTP (Time-based One-Time Password) using an authenticator app.
  2. Submitting a one-time password (OTP) code from the authenticator app to verify and update the MFA settings.

Properties

Name Meaning
MFA Type Specifies the type of MFA to update, currently supporting TOTP (Authenticator App).
OTP Code The one-time password generated by the authenticator app, required to verify and update the MFA authenticator.

Output

JSON

  • result - The response from the Appwrite API after updating the MFA authenticator, typically containing status or updated MFA details.

Dependencies

  • Appwrite API client library
  • API key credential for authentication

Troubleshooting

  • Ensure the OTP code is correctly generated and entered from the authenticator app; incorrect OTP will cause authentication failure.
  • Verify that the API key and project credentials are correctly configured to avoid authorization errors.
  • Check that the MFA type is supported and correctly specified; unsupported types will cause errors.

Links

Discussion