sokratesliOriginal post
Web Developer
I am still failing to implement the TOTP-MFA.
Plain text
AuthenticatorType.Totp, // type '<OTP>' // otp);```
`Error: 401 - "Invalid token passed in the request.".`
Is there an instruction in which order you have to create the TOTP for?
e.g.1. createMfaAuthenticator2. updateMfaAuthenticator3. account.updateMFA (false -> true)?
Thank you very much.
Translated with DeepL.com (free version)Summary
Issue: Developer facing error 401 (user_invalid_token) while implementing TOTP-MFA.
Solution: It seems the order of creating TOTP might be incorrect. Try creating the MFA authenticator first using `createMfaAuthenticator`, then update it using `updateMfaAuthenticator`, and finally set the MFA as true on the account.