What happens if you call the configure_mfa_with_form dialogue with an already logged in user, the clojure code looks like it has some method to get the “current” email address. (Or I could be reading it wrong, which is often the case)
I am calling it with a logged in user and getting this error. I didn’t dig deep into the clojure code (too scary) but didn’t have to go further than the Python modules.
Anyway here’s a clone link to my app (Settings form). It depends on two open source apps but the Settings form is fairly standalone.
The logged in user is successfully inferred when the user logs in during the current session.
However, when I am in a debug session, and restart the debug app (which I think starts a new session), and the user is already logged in (remembered), it can no longer infer the logged in user. This causes issues with:
configure_mfa_with_form
add_mfa_method
I also tried with a different deployed environment and reproduced the issue. It is tricky since refreshing the page usually continues the same session. But when I enter a new session and the user is already logged in, issue happens.