-
What is the best way to troubleshoot 2FA failures?
If a user enters a code they received on SMS or use a TOTP code, and FusionAuth still says
invalid code, how can we troubleshoot the issue?I don't see any webhooks and there aren't a ton of event logs.
-
Currently FusionAuth does not provide additional logging or events for a failed 2FA login.
There are two reasons that a 2FA code would be considered invalid (assuming the code was valid at one point in time):
- Expiration. You can control the duration of these codes in the Advanced tab of the edit tenant page by adjusting the external identifier duration for Two-Factor login
- Another code requested. A user is only allowed one active 2FA code at a time, so if there is a situation where another 2FA code is requested, the other code would be invalidated.
It'd be good to see if you can narrow down the situation where the
invalid codemethod is received to one of those, which may help troubleshoot the root cause. -
D dan has marked this topic as solved on
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login