Bravo Studio Help Center
  • Get started with Bravo Studio 👏
  • Get Started
    • 🚀Create your first app
    • 🌟Bravo introduction
      • Get ready to create your app with ChatGPT
      • Create an app
        • Creating an app with Figma
        • Creating an app with Adobe XD
      • Duplicate an app
      • Delete an app
      • Replace linked Figma file
      • The app page
      • Sharing your app
      • Add an editor to your app
      • Fonts
        • Adobe XD - Supported fonts
    • 📱Bravo Vision previewer
    • ✨Unlock power features to create interactive apps
    • 🎓Help and tutorials
      • 📖App guide tutorials
        • Sample app tutorial: Your first binding
        • How to build a Fitness app with Bravo, Xano and RevenueCat
        • Foodgram: Social content sharing
        • Expedition journal: Write and share your adventures
        • My Subscriptions: Display data based on device ID
        • My Notes: using user ID and email from Firebase
        • My Store: Sell physical products with Bravo and Stripe
        • Titan: How to create a Smart Home App with No-Code?
        • n8n: Building an expense tracking app in 10min
      • 📺Learn with videos
      • 📚Learn with articles
      • 🗃️Browse by app feature
        • Save or "bookmark" a page
        • Backend search with Airtable
        • Backend search with Xano
        • Nested lists (list within a list)
        • Create and edit user profile (Firebase + Airtable)
        • Skeleton loader
        • Create albums in your app with Bravo Infinite images
  • Set up your design
    • 🖌️Get your Figma ready for Bravo
      • 🗃️Structuring the design: the layer hierarchy
      • 🪄Bravo Tags: adding functionality to the UI elements
      • 🧱The container
        • Setting up a container on Figma
        • Setting up a container on Adobe XD
      • 📲App navigation
        • Setting up app navigation on Figma
        • Setting up app navigation on Adobe XD
    • 🔌Bravo plugin for Figma
    • 💾Sample design files
    • 🤓Best Practices
  • App components
    • 📒Bravo Tags Master List
    • 🚪Menus
      • Modal Menu
      • Modal pages
      • Tabs Menu
      • Pop Up pages
      • Slide Menu
    • 🍞Pages
      • Modal pages
      • Pop-up pages
      • Swipe page
      • Transitions page
      • Page reveal animations
      • Page tabs
      • 🔮Stateful pages
    • 📦Containers
      • Swipe to delete
      • Top bar
      • Carousel slider
      • Aspect ratio relative to screen
      • Sortable List
      • Layer (sticky element)
    • 👋Intro & Onboarding
      • Intro page
      • Post-login page (Onboarding)
    • ⌛Loading experience
      • Loading page
      • Custom loading page
      • No loading
      • Preload
    • 📝Form & input fields
      • 👁️Password Visibility Toggle
      • 🩷Stateful input
        • ☑️Checkboxes (Multiple select)
        • ✅Required Checkbox
        • 🔘Radio buttons (Single select)
      • ⏳Input time Interval
      • 📄Dropdown selector
      • 🎚️Slider control
      • 🗓️Calendar picker
      • 📄Send form input to a database
    • 💎Components
      • Autoplay Video
      • GIF
      • SVG Component
      • Web view
      • Web Components using AI
      • Web view communication
      • LottieFile
      • Lottie-animated component
      • Flexible text (Flexo)
      • Zoomable image
      • Component states
      • Stateful component (like button)
      • Setting up the backend of Stateful component (like button)
      • Haptic Feedback (Buzzz)
      • Progress bar
      • Rich text
      • Date, Time and Currency Formatter
      • Scrollable text
      • Text Lines & Truncation
      • Status bar
    • ⚡Mobile actions
      • Mobile Actions
      • Play audio
      • Record audio
      • Play video
      • Scan QR code (external URL)
      • Scan codes (remote action)
      • Search & filter
      • Refresh page
      • Share location
    • 📱App Icon & Splash Screen
    • 🗺️Map with markers
    • 📈Charts
  • Data and Backend
    • 🗂️Set up a no-code backend
      • Xano
        • Nested lists (list > list > detail page) with Xano
        • Create a bookmark functionality with remote actions and device ID with Xano
        • Multi-user setup with Xano
        • 🔒Setting up the Xano Log in Snippet
          • ♻️Refresh Token
      • Airtable
        • Nested lists (list > list > detail page) with Airtable
        • Sort list with Airtable
        • Connect multiple tables from Airtable to one app
        • Update Airtable's API key to Access Token
      • Backendless
      • Bubble
      • Notion
        • Getting data from a Notion table
      • Firebase
        • Getting data from Firestore
    • 💾Set up API requests
      • Set up from scratch
        • Airtable
          • Set up an API GET request for list page - Airtable
          • Set up an API GET request for detail page - Airtable
          • Set up an API POST request - Airtable
          • Set up an API DELETE request - Airtable
        • Xano
          • Set up an API GET request for list page - Xano
          • Set up an API GET request for detail page - Xano
          • Set up an API PATCH request - Xano
          • Set up an API POST request - Xano
          • Set up an API DELETE request - Xano
      • Using GraphQL body type
      • Set up with API wizard & importer
        • Using the Airtable API Wizard
        • Using the Xano API wizard
    • 🎲Variables
      • Built-in variables
      • Set Variable
    • 📚Data Collection & Binding: Complete Collection
    • 🗂️Pagination
    • 🐛Debugging API issues
      • ⚙️Debugging requests in the API Collection
      • 📲Event logger
      • 🔗Link property
  • Data binding
    • 🤝Data binding types
      • API binding types
      • Bind multiple API requests to one screen
      • How to connect my API to a mobile actions
      • Remote actions: trigger an API request with a UI element
    • 💡Display data in your app
      • Bind data to design for a list page
      • Bind data to design for a detail page
    • 🆕Create data from your app
    • 🗑️Delete data from your app
    • 🚦Conditional Visibility
    • 🎛️Conditional Actions
  • Integrations & Settings
    • 🖇️Deep Links
      • 🖇️Deep Links for Bravo Vision
      • 🖇️Deep Links for published apps
      • 🖇️Troubleshooting Deep Links
    • 🔔Push Notifications with OneSignal
      • How to get a Bravo page URL
    • ⚙️Firebase Configuration
    • 🔐User Authentication
      • 🔑Authentication with Kinde and Xano
      • 🧙🏽Authentication with OAuth 2.0
        • Using social logins to authenticate users
        • Using AWS Cognito to authenticate users
        • Connecting to Spotify API
      • 📲User login with Firebase
        • ✉️Email and password Login with Firebase
        • 📞Phone Login with Firebase
        • 🍎Social Login with Firebase
        • 👻Anonymous Login with Firebase
      • ⛓️Authentication with custom backend
        • Set up Xano as your user authentication backend
    • 💰Stripe: One-time Payment
    • 💬Chat: CometChat
    • 💸RevenueCat: In-app purchases and subscriptions
    • 📉Bravo Analytics
    • 📳Facebook App Events
    • 📊Google Analytics
    • 🌐Multilingual apps
    • 🕸️How to connect with Webflow API
    • 📡NFC connection
    • 🎯Admob
  • App Publication
    • 🚀Publishing your app
      • iOS Publication: Complete Process
        • 1. Generate Certificates, AppIDs and Provisions
        • 2. Get the IPA
        • 3. Upload IPA to App Store Connect
        • 4. Test your app on TestFlight (optional)
        • 6. App Store publication
        • 7. Updating an app in the App Store
      • Android Publication: Complete Process
        • 1. Create a Keystore File (optional)
        • 2. Get the Debug APK to install
        • 3. Install the Debug APK in your device
        • 4. Get the AAB (Android App Bundle) file to publish
        • 5. Google Play publication
        • 6. Updating an app in Google Play
      • Android APK Installation Guide
      • Rejection from the app stores
    • 🎛️Making changes to your app after publication
    • 🛍️Versioning
    • 🌟App rating alert
  • Good to Know
    • 🤔Troubleshoot
      • Errors when logging in
      • Errors when creating an app
      • Errors in API requests
        • Request timeouts on Bravo
      • Errors after importing
      • Errors in publication form
    • 🧑‍💻Manage your account
    • 💳Billing
      • Bravo Subscription Plans Overview
      • App Add-ons
      • Upgrading a plan
      • Downgrading a plan
      • App allowance
      • Invoices & payment method
      • FAQ
    • ❓FAQs
      • About Bravo Studio
      • Importing a design file
      • Bravo Vision
      • Bravo Tags
      • API & Data Library
      • Login & Account
      • Other Features
  • NEED SOME HELP?
    • 📖Bravo Support Guide
    • 🤝Join the Bravo community
    • 🤖Bravo Assistant
    • 👥Production support
    • 🐞Report an issue
Powered by GitBook
On this page
  • 1. Setting up the UI
  • 1.1. Login page
  • 1.2. Signup page (optional)
  • 1.3. Reset password page (optional)
  • 1.4. Log out action (optional)
  • 1.5. User delete action (optional)
  • 2. Set up in Firebase
  • 2.1. Enable Type of Authentication
  • 3. Firebase Configuration in Bravo
  • 4. Managing your users base

Was this helpful?

  1. Integrations & Settings
  2. User Authentication
  3. User login with Firebase

Email and password Login with Firebase

Set up a user authentication system using Email and Password with Firebase

PreviousUser login with FirebaseNextPhone Login with Firebase

Last updated 1 year ago

Was this helpful?

This guide covers how to set up a login page with the email and password using Firebase as the user management service.

Follow along below or watch this tutorial

1. Setting up the UI

💾 Sample design file

Here's a sample design file that already contains all the necessary tags for the login feature. It contains the tags for email and phone login. They can also be combined with Firebase's Social Login.

1.1. Login page

There can only be one login page in the app. In order to set the login page, add the [page:login] tag in the page-level component (1st level).

In order to set up the email & password login, use the tags below.

  1. [component:input-email]: Indicates which field will be used as the user email input, needs to be a valid email, as is required by Firebase.

  2. [component:input-password]: Indicates which field will be used as a password input. Needs to be at least 6 characters.

  3. [action:login:firebase-email-password]: Action of the button that does the login action with the filled information in the previous fields.

1.2. Signup page (optional)

You can either allow news users to register in your app or only allow access to a specific list of users defined in Firebase. So the signup page (or a signup container) is an optional screen.

  1. [component:input-email]: Indicates which field will be used as the username login, needs to be a valid email, as is required by Firebase.

  2. [component:input-password]: Indicates which field will be used as a password.

  3. [action:register:firebase-email-password]: Action of the button that does the register action with the filled information in the previous fields.

1.3. Reset password page (optional)

You can add a container or a page that will send an email to your users to reset their password.

  1. [component:input-email]: Indicates which field to be used to enter the email from the user to send the reset password instructions.

  2. [action:reset-password:firebase]: Action of the button to send the reset instructions.

1.4. Log out action (optional)

To allow your users to log out (once they have logged in), add this action Tag to a UI element.

  1. [action:logout:firebase]: Log out action, can be added to any UI element inside the app.

1.5. User delete action (optional)

To allow users to delete their accounts, add the following tag to a UI element in your app: [action:logout-delete]. When users press this element, their account will be deleted. The user will be logged out as well.

2. Set up in Firebase

Once you have the UI ready, it's time to manage user authentication in your existing Firebase project.

2.1. Enable Type of Authentication

  1. After the project is created, click on Build > Authentication from the left menu. Here is where your user accounts will be created and stored. If you have a signup page in your app, users will appear here once they have registered. If you want to limit access to a specific list of users, you will create their accounts here.

  2. Go to Sign-in method tab and enable the type of Authentication we want to use in our Firebase.

  1. For email login, enable the first toggle Email/Password. The email link (passwordless sign-in) is currently not supported.

Note that Bravo does not currently support Firebase email verification.

  1. To confirm, click Save.

3. Firebase Configuration in Bravo

  1. Enable Firebase Email/Password & Social login from the app's Integrations tab and Login section.

On Bravo Vision, every time the app is opened, login will be required. This won't happen on the published app, where the session will be maintained until the user chooses to log out.

4. Managing your users base

In terms of the users base, we have two choices:

  1. Have a separate list of users for the published apps.

    If you want to have a separate list of users, you need to create a new Firebase project and repeat the steps to configure the project, but this time adding the final package name and bundle ID.

  2. Or maintain the same users that we have in Bravo Vision.

    If you want to maintain the users, simply add extra apps in the same Firebase project but with the final bundle ID and package name.

And there you have a native login! 🤓

In case you already have a published app bundle, and you change these Firebase assets, you'll need to generate a new bundle and publish an update to the stores.

Make sure to place the (Figma) or Home icon (XD) on the "Home" screen of your app (i.e. the first screen users will see after they have logged in).

The login page will appear when the user is not logged in when the app starts, or when the user has just logged out. This screen will appear after the , in case you have one.

Tip: in case you have several login options, you can set the [page:login] tag in a screen where the user can choose among those login options, and then navigate to separate pages to log in. See our to see how to do it.

If you haven't created your Firebase project yet, follow the steps provided .

Complete the process to enable Firebase Integrations and manage user email and password authentication.

Once completed, your app's login is ready to test! Open Bravo Vision or your Published app to test out the login pages.

After the user has logged in, two special will be created: ${user.id} and ${user.email} (only for email-based login). These built-in variables can be sent as part of an API request, to handle user-specific data in the database.

🎉
flow start point
intro page
example design
Firebase Configuration
⚙️Firebase Configuration
🔐
📲
✉️
Bravo Sample: Login with FirebaseFigma
Sample design for email and phone login
variables
here
Figma Sample with a Bravorized login screen
Figma Sample with a Bravorized Sign up screen
Figma Sample with a Bravorized Reset Password screen
Figma Sample with a Bravorized Log out screen
Enable Email/Password Sign-in provider in Firebase
Enabled Firebase Login
Page cover image
Logo