Skip to content

Commit 03fb632

Browse files
committed
feat: add instructions to copy Firebase config to config.ts
1 parent 0ca3644 commit 03fb632

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

auth/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Introduction
2525
Getting Started
2626
---------------
2727

28-
1. Create a Firebase project on the [Firebase Console](https://console.firebase.google.com).
28+
1. Create a Firebase project on the [Firebase Console](https://console.firebase.google.com). Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the auth directory.
2929
2. Add a support email to your project in the [settings page](https://console.firebase.google.com/u/0/project/_/settings/general/). Some auth methods won't work without this.
3030
3. Enable the authentication method you want to use by going to the **Authentication** section in the **SIGN-IN METHOD** tab - you don't need to enable custom auth.
3131
- For **Custom Auth**, generate a Service Account credentials in your [Firebase Console > Project Settings > Service Accounts](https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk), and click on **GENERATE NEW PRIVATE KEYS**. You will need it in the [example token generator](exampletokengenerator/auth.html).

database/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Introduction
1313
Getting Started
1414
---------------
1515

16-
1. Create your project on the [Firebase Console](https://console.firebase.google.com).
16+
1. Create your project on the [Firebase Console](https://console.firebase.google.com). Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the database directory.
1717
2. Enable the **Google** sign-in provider in the **Authentication > SIGN-IN METHOD** tab.
1818
3. You must have the Firebase CLI installed. If you don't have it install it with `npm install -g firebase-tools` and then configure it with `firebase login`.
1919
4. Run `npm install` to install the app's dependencies.

messaging/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Getting Started
1717
2. Register a web app by following [**Step 2: Register your app with Firebase**](https://firebase.google.com/docs/web/setup/#create-firebase-project).
1818
1. You don't need to add Hosting right now, and you can skip the "Add Firebase SDK" step in the console's "Add Firebase to your web app" flow.
1919
2. Remember to click "Register App" or "Continue to console" at the bottom of the "Add Firebase to your web app" flow.
20-
3. Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the quickstart directory.
20+
3. Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the messaging directory.
2121
3. Open Project and go to **Project settings > Cloud Messaging** and there in the **Web configuration** section click **Generate key pair** button.
2222
4. Copy public key and in the `config.ts` file replace `<YOUR_PUBLIC_VAPID_KEY_HERE>` with your key.
2323
5. You must have the [Firebase CLI](https://firebase.google.com/docs/cli/) installed. If you don't have it install it with `npm install -g firebase-tools` and then configure it with `firebase login`.

remote-config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ see
1717
Getting started
1818
---------------
1919

20-
1. Follow step 1 and 2 [here](https://firebase.google.com/docs/web/setup#register-app) to register a web app with your Firebase project. Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the quickstart directory.
20+
1. Follow step 1 and 2 [here](https://firebase.google.com/docs/web/setup#register-app) to register a web app with your Firebase project. Copy your Firebase config object (from the "Add Firebase to your web app" dialog), and paste it in the `config.ts` file in the remote-config directory.
2121
2. Set up Remote Config for your Firebase project:
2222
1. In the Firebase console, open your project
2323
2. Select Remote Config from the menu to view the Remote Config dashboard

0 commit comments

Comments
 (0)