Face & Touch ID
Muhammad Aaqib
Last Update 2 lata temu
Description:
β Register & Authenticate Users β Users can register their biometric credentials and use them for authentication.
β Restrict Access to Pages & Features β Allow access to sensitive areas only after biometric verification.
πΉ How It Works:
Authentication β Users authenticate using their stored credentials.
Conditional Access β Only authenticated users can access a restricted page or feature.
Instructions:
Install the Face & Touch ID Plugin from the Bubble Plugin Marketplace.
2οΈβ£ Add the Plugin Element
Drag & drop the Face & Touch ID element onto the page where authentication is required.3οΈβ£ Register the User (First Time Setup)
Store the returned unique ID in the database to link it with the user.
π Example Workflow for Registration:
4οΈβ£ Authenticate the User Before Granting Access
When a user tries to access a restricted page or feature, trigger the Authenticate User action. providing the credential_id saved in current user.If authentication succeeds, allow the user to proceed.
π Example Workflow for Authentication:
πΉ Restricting Access to a Page (Conditional Redirection)
To prevent unauthorized users from accessing a page:Create a Workflow on Page Load:
Check if the user is authenticated.
If not authenticated, redirect them back to the home/login page.
π Example Condition:
When Page is Loaded β If authentication state is false, navigate to the login page.πΉ Restricting Access to a Feature (Hiding UI Elements)
To hide/show UI elements based on authentication status:Set a Custom State:
Create a custom state is_authenticated (yes/no).
Set this state to "yes" when authentication succeeds.
Apply Conditional Visibility:
Show the restricted feature only if is_authenticated is "yes".
π Example Condition for a Button:
Show the "Restricted Feature" button only when is_authenticated is yes.πΉ Example Use Cases
π Secure Dashboard Access β Require Face/Touch ID before showing the dashboard.π Protect Financial Transactions β Verify the user before processing a payment.
π Restrict Access to VIP Content β Allow premium users to access exclusive content.
π Secure Profile Updates β Require authentication before changing personal information.
With the Face & Touch ID Plugin, you can enhance security in your Bubble.io app by requiring biometric authentication before allowing access to sensitive pages or features.
π Start integrating biometric authentication today and secure your app effortlessly!





