To integrate this plugin into your Bubble app and enable Two-Factor Authentication (2FA), follow these steps:
1.
Install the Plugin 1. Navigate to your Bubble app's dashboard.
2. Go to the "Plugins" tab.
3. Search for the 2FA plugin and install it.
2.
Update User Table Fields 1. Access your Bubble app's database.
2. Locate the user table.
3. Create the following fields in the user table:
-
secret (Text Data Type): Stores the secret key for generating the QR code.
-
is-2fa-enabled (Boolean Data Type): Indicates if the current user has enabled 2FA.
-
is-2fa-verified (Boolean Data Type): Updates this field once the token is verified. If false, prompt the user for the token again.
3.
Implement 2FA Verification 1. In your Bubble app, navigate to the pages where you want to implement 2FA verification.
2. Add a workflow action to the page load event.
3. Configure the action to verify 2FA using the plugin.
4. Use the necessary plugin actions to:
- Check if the current user has 2FA enabled.
- Verify if the token is valid.
5. Update the
is-2fa-verified field based on the verification status.
4.
Handle Token Verification 1. If the
is-2fa-verified field is false, prompt the user to enter the 2FA token.
2. Use the plugin to validate the entered token against the stored secret and server token.
3. If the verification is successful, update the
is-2fa-verified field for the user.
By following these instructions, you can successfully integrate the 2FA plugin into your Bubble app and manage the necessary user fields for 2FA functionality.
NOTE:This plugin doesn't support backup codes.
For more information refer forum Link :
[Forum Link:
https://forum.bubble.io/t/new-plugin-release-crazy-two-factor-authentication/312054](
https://forum.bubble.io/t/new-plugin-release-crazy-two-factor-authentication/312054)