Skip to content

users.listMfaFactors() returns incorrect recoveryCode value (inconsistent with account.listMfaFactors())Β #10927

Closed

Description

@alexfreeman90

πŸ‘Ÿ Reproduction steps

  1. Create a user account
  2. Enable MFA on the account
  3. Generate recovery codes using account.createMfaRecoveryCodes()
  4. Call account.listMfaFactors() β€” returns recoveryCode: true βœ…
  5. Call users.listMfaFactors(userId) for the same user β€” returns recoveryCode: false ❌

πŸ‘ Expected behavior

Both endpoints should return identical MFA factor states for the same user. When recovery codes exist, both should return recoveryCode: true.

πŸ‘Ž Actual Behavior

account.listMfaFactors() correctly returns recoveryCode: true
users.listMfaFactors(userId) incorrectly returns recoveryCode: false

🎲 Appwrite version

Appwrite Cloud

πŸ’» Operating system

Linux

🧱 Your Environment

  • Appwrite Cloud / Self-hosted
  • Using Node.js SDK

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Activity

  1. added
    product / auth
    on Dec 10, 2025
  2. Adityakk9031 commented on Dec 13, 2025

    @Adityakk9031

    please assign this issue to me

  3. Adityakk9031 commented on Dec 13, 2025

    @Adityakk9031

    please assign it to me pr is ready

  4. YuvamGupta commented on Dec 15, 2025

    @YuvamGupta

    Hi Aditya! I am not a maintainer, so I can't assign this issue to you. However, please go to the discord issue and ask to be assigned there. Hopefully, you will be assigned and your PR will be approved.

  5. self-assigned this
    on Sep 8, 2026
  6. HarshMN2345 commented on Sep 8, 2026

    @HarshMN2345
    Member

    fixed in #13531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / auth

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions