You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/firebase.md
+183-2Lines changed: 183 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,6 +320,189 @@ Once the authentication code is added, you’ll need to configure your project f
320
320
321
321
If you’re building for the web and want to test authentication while running your app in Dreamflow, follow the steps in the [Add Authorized Domain](#add-authorized-domain) section to add your Dreamflow preview domain to the **Authorized Domains** list in the Firebase Console.
322
322
323
+
324
+
325
+
### Apple Authentication
326
+
327
+
To configure Apple Sign-In for your app, follow these steps:
328
+
329
+
#### 1. Firebase Console Setup
330
+
331
+
Open **Firebase Console** > **Authentication** > **Sign-in method**. Enable **Apple** as a sign-in provider. Keep this page open, you’ll return here after configuring Apple in the Developer portal.
332
+
333
+
#### 2 Apple Developer Setup
334
+
335
+
Go to the **Apple Developer** portal > [Identifiers list](https://developer.apple.com/account/resources/identifiers/list) and follow the steps below:
336
+
337
+
##### 2.1 Create an App ID (for iOS app)
338
+
339
+
Follow Apple’s official instructions to [create an App ID](https://developer.apple.com/help/account/identifiers/register-an-app-id/). During the setup process, make sure you enable the **Sign In with Apple** capability, then finish by selecting **Continue** and **Register** to create the App ID.
340
+
341
+
<div style={{
342
+
position: 'relative',
343
+
paddingBottom: 'calc(52.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
##### 2.2 Create Service ID (Required for Web & Android)
368
+
369
+
1. Click **+** to add new identifier.
370
+
2. Select **Services IDs > Continue**.
371
+
3. Enter the **Identifier** and **Description**. For Identifier, you can set it by appending **“.signin”** to your bundle ID (e.g., `com.awesomeorg.uplift.signin`), or use any unique identifier.
372
+
4. Check **Sign In with Apple** and then click **Configure**.
373
+
5. Select your App ID as the **Primary App ID**.
374
+
6. Under **Website URLs**:
375
+
-**Domains**: Add your Firebase domain (e.g., `yourproject.firebaseapp.com`). Do NOT include "https://" - just the domain.
-**For Android** and **Web**: Make sure you have completed the [**OAuth code flow configuration**](#24-connect-apple-to-firebase) in the Firebase console.
502
+
-**User Info Only on First Sign-In**: Apple only returns the user’s **name** and **email** on the **first** successful sign-in. You should **store this data** (e.g., in Firestore or your backend) the first time you receive it. On subsequent sign-ins, these fields will be `null` / omitted.
503
+
-**“Hide My Email” (Private Relay)**: Some users choose **“Hide My Email”** when signing in. Apple then provides a **proxy email**, e.g., `abc123@privaterelay.appleid.com`. To send emails through the proxy email to the users’ personal inboxes, you'll need to [**configure private email relay service**](https://developer.apple.com/help/account/capabilities/configure-private-email-relay-service/).
504
+
:::
505
+
323
506
### Add Authorized Domain
324
507
325
508
If you’re building for the web and want to test authentication while running your app in Dreamflow, you must add your Dreamflow preview domain to the **Authorized Domains** list in the Firebase Console.
@@ -335,8 +518,6 @@ Locate the log entry that contains a URL like: `wss://summer-firefly-vuh34ynj.mu
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.
0 commit comments