Your Majesty
Your Majesty3w ago

Firebase Login auth flow

Please I am trying to build a web app on webflow and using buildship as the backend, I have created the authentication flow for creating new users on firebase using email and password through buildship. What I want to know is, is there a workflow for logins for firebase users. Can anyone point me in the right direction? And if there isn’t a workflow, how do I achieve the login workflow for firebase on buildship. There is no videos on that which I have seen. They all only show creating a user and not how to handle logins. What nodes will I use to compare the passwords the users enter to what is in firebase? Or what node will I ise to handle that?
2 Replies
AI Support
AI Support3w ago
AI Support Bot Information
<@1175844322302758924> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support3w ago
AI Response
It seems that there isn't a pre-built workflow template for Firebase logins in the BuildShip Template Database. However, you can create a login workflow using BuildShip by following these general steps: 1. Authentication Flow: For authenticating users with Firebase, you will typically use Firebase Authentication SDK directly in your front-end (Webflow in this case) to handle login with email and password. 2. Backend Verification: You can use BuildShip for additional backend verification or user-related workflows post-authentication. Here’s how you can generally approach building a login workflow: - Front-End (Webflow): Use the Firebase Authentication SDK to handle the email and password login. Ensure that the Firebase SDK is initialized in your Webflow project and use functions like firebase.auth().signInWithEmailAndPassword(email, password) to authenticate users. - Backend (BuildShip): - Use Firebase Admin SDK if needed to handle server-side operations, such as fetching user details, updating user data, etc. - If you need to create a BuildShip workflow to verify Firebase ID tokens (provided after login), you can utilize the "Verify Firebase Token" node (if available) on BuildShip to ensure that the client-side token is legitimate. - Utilize BuildShip's database nodes or HTTP nodes to handle any server-side logic, depending on your needs, like user profile access, etc. Unfortunately, direct password comparison is not handled in BuildShip workflows because authentication should be handled primarily on the client-side using secure Firebase Authentication methods. You ensure all communications are over HTTPS to protect sensitive data. For more specific implementation steps, it might be useful to review Firebase's documentation related to authentication and consider community resources or forums for integrating Firebase Authentication with Webflow if you run into issues specific to that integration. Since there aren't tutorials or existing workflows specifically for this login scenario on BuildShip, exploring Firebase's extensive guides will be valuable for the authentication part, and using BuildShip for backend logic post-authentication can complement this setup. If you need further clarification, consider reaching out to BuildShip support through in-app support for guidance tailored to your project's specifics.
BuildShip AI Support