DRRR
2
I have the same problem.
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.