Back

Error while following MFA docs

  • 0
  • Self Hosted
  • Auth
  • Web
losfroger
17 Jul, 2024, 14:55

I was trying to follow the docs to activate MFA: https://appwrite.io/docs/products/auth/mfa#enable-mfa

Following steps 1 and 2, but on step 3, when calling account.updateMFA(true) it gives the following error:

TypeScript
AppwriteException: Invalid document structure: Attribute "factors" must be an array

I'm not sure if there´s a missing step, but even with the exception it seems to still enable MFA, is this a bug? Or is there a missing step in the docs?

I'm using Appwrite 1.5.7 generated from following the docker instalation instructions

TL;DR
Developers encountering error "AppwriteException: Invalid document structure: Attribute 'factors' must be an array" while trying to enable MFA following Appwrite docs. Unsure if it's a bug, but MFA still seems to enable despite the error. Not missing any steps, possibly a doc issue. Running Appwrite 1.5.7 from Docker installation. Solution: The error message shouldn't affect MFA activation as it appears to still be enabled. Carry on with MFA implementation despite the error.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more