losfrogerOriginal post
Web Developer
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:
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
Summary
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.