I don’t see any way to do this simply (there’s no field . Chatgpt only suggests overcomplicated solutions that aren’t really applicable because they always assume there’s a way to capture that user is automatically logged out, which is not the case.
Hi @tris, I might be totally off here but trying to think through your issue,
If Bubble automatically logs users out at some point, wouldn’t it be better to check periodically for logged out state then set the 2fa based on that instead of a backend trigger?
So I’m thinking frontend workflow > general > user logged out > make changes to user > 2fa valid = No
or
general > do when condition is true > only when current user is logged out > make changes to user > 2fa valid = No
I think with this you might not even need to make changes to user on click of the logout button since it would trigger automatically when the user is logged out either by bubble or by clicking the logout button.