So after setting up 2FA about 2 months ago everything was working fine until today. I tried to create a new user and after signing up I’m not getting redirected to the 2FA page that I have selected in the “Redirect users to check their temporary token”.
I tried disabling and enabling 2FA in version-test however there is no luck with it.
Is Bubble having a temporary problem at the moment?
Cheers
Michal
p.s
I have just tested a login process and it redirects the user as usual to the 2FA page to check for their 2FA code.
I have tried so many things but the documentation is very unclear so it is difficult to figure out how this works.
So starting with a user with 2FA setup, after logging the user in, the sign-in page just refreshes (debug mode is also shut down).
I have spent hours fixing this but i’m truly puzzled on what to do.
For me the easiest way of implementing this is that logging in is a two step approach (which makes sense as you need 2 authentication factors).
What is confusing is that Bubble has the User is logged in property but not the user is half-wat logged in… Ideally i wouldn’t need to think about it (so first step is the action: Log the user in . Bubble recognizes the 2FA being active and the user being authenticated just once (unless a token is stored that is accepted for 30 days) so there is only one way to go and that is the 2FA page created (where users can validate their one time token.
Here it becomes vague because what is the next action after the token is validated. What is the user state different then before the token was validated? Can i use the result to direct the user to a specific page?
There is not much out there other than the steps for creating the QR code etc.
Assuming you’re using the Validate and activate 2FA Workflow you can actually just continue the workflow sequence after that workflow. If the 2FA code fails to validate it will terminate the whole workflow and throw an error.
Same goes for Check 2FA code workflow(this is used once the user actually sets up the 2FA and logs into the system in the future).