To implement Two-factor authentication (2FA) for users in your Bubble application with a Growth plan subscription, follow these steps:
- First, activate 2FA in your app settings.
Go to the General tab in your app’s settings and enable “Activate two-factor authentication”.
Set up create a page in your app with a “Check_2FA_token” action. This is where users will enter their one-time code.
In your app settings, specify the page you created as the “Redirect users to check their temporary token” option.
Use the “Generate a 2FA QR code” action in a workflow when a user wants to set up 2FA. This generates a unique QR code for the user to scan with Google Authenticator or Authy.
Implement the “Validate token and activate 2FA” action to confirm the user’s first-time setup.
Next logins, use the “Check_2FA_token” action to verify the user’s temporary code.