diff --git a/docs/integrations/firebase.md b/docs/integrations/firebase.md index 4ee4433..3a79cf2 100644 --- a/docs/integrations/firebase.md +++ b/docs/integrations/firebase.md @@ -48,7 +48,7 @@ Once complete, Dreamflow will confirm the connection with a **Connected** status
-### First-Time Firebase Project Setup +### Initial Firebase Project Setup If this is your first time connecting to Firebase, you must create a new project in the Firebase Console and accept the Terms of Service before continuing. @@ -250,17 +250,55 @@ Here’s an example of enabling email/password authentication: Dreamflow lets you add sample data to your Firebase project for easier development and testing. The generated data follows your app’s schema, so you can quickly check how your app works with populated users, collections, and documents. -To add sample data from Dreamflow, go to the **Firebase** module **> Add Sample Data to Firebase**. Enter the email address of your test account in the **User Email** field. This account will be associated with the generated sample data. Click **Generate Sample Data**. +To add sample data from Dreamflow, go to the **Firebase > Sample Data**, and follow the instructions below: -Once the process is complete, you will see the generated sample data entries inside your **Cloud Firestore** under the respective collections defined in your schema. +- **For Apps with Login Functionality:** First, sign up in your app using an email and password. After logging in, enter the same email address in the **User Email** field and click **Generate Sample Data**. This will generate sample records linked to that user account. + + + +- **For Apps without Login Functionality:** You can skip the email step, as it’s optional. Simply click **Generate Sample Data** to generate test documents directly in your Firestore Database. + + + +:::warning + +You can only generate sample data **once.** If you need to modify or remove the sample data later, you can do so directly in the **Firebase Console** under **Firestore Database**. + +::: :::info This process only inserts sample data into the **Firestore Database** for the specified user email. It does **not** create a user in Firebase Authentication. Make sure the user with the specified email exists in Firebase Authentication to be able to access the data. -::: +You can directly add a user to Firebase Authentication. To do so, open the Firebase Console and navigate to **Authentication > Users**. Click **Add user** in the top-right corner, enter the user’s email and password, and then click **Add User** to create the account. - ++ Cloud function deployments usually fail when your Google Cloud Platform (GCP) or Firebase project hasn’t been fully set up with the necessary APIs and permissions. By default, when you create a new Firebase project, some APIs required by Cloud Functions are not enabled automatically. In addition, the default compute service account may not have the correct roles to deploy functions. Without these APIs and permissions, Dreamflow cannot deploy functions successfully, and you’ll see deployment errors. diff --git a/docs/integrations/imgs/add-sample-data-firebase-wihtout-login.avif b/docs/integrations/imgs/add-sample-data-firebase-wihtout-login.avif new file mode 100644 index 0000000..06728f9 Binary files /dev/null and b/docs/integrations/imgs/add-sample-data-firebase-wihtout-login.avif differ diff --git a/docs/integrations/imgs/add-sample-data-firebase-with-login.avif b/docs/integrations/imgs/add-sample-data-firebase-with-login.avif new file mode 100644 index 0000000..c81cb9f Binary files /dev/null and b/docs/integrations/imgs/add-sample-data-firebase-with-login.avif differ diff --git a/docs/integrations/imgs/cloud-fn-deploy-failed.avif b/docs/integrations/imgs/cloud-fn-deploy-failed.avif new file mode 100644 index 0000000..90d35b8 Binary files /dev/null and b/docs/integrations/imgs/cloud-fn-deploy-failed.avif differ diff --git a/docs/integrations/supabase.md b/docs/integrations/supabase.md index fbef4db..4c80ea2 100644 --- a/docs/integrations/supabase.md +++ b/docs/integrations/supabase.md @@ -200,5 +200,7 @@ Why can’t I log in with the email I used to generate sample data? If you generated sample data before adding authentication to your app, logging in with that same email will fail — and this is expected behavior. When sample data is created, it inserts records directly into the Supabase database, including user details, but it doesn’t go through the actual authentication process. As a result, those users exist in the database but don’t have valid authentication credentials in Supabase Auth. + +To fix it, you can delete the dummy user record from the Auth table and then sign up again in your app with that email.