Skip to content

Commit

Permalink
feat: add instructions to copy Firebase config to config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Nov 30, 2023
1 parent 0ca3644 commit 03fb632
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Introduction
Getting Started
---------------

1. Create a Firebase project on the [Firebase Console](https://console.firebase.google.com).
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.
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.
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.
- 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).
Expand Down
2 changes: 1 addition & 1 deletion database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Introduction
Getting Started
---------------

1. Create your project on the [Firebase Console](https://console.firebase.google.com).
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.
2. Enable the **Google** sign-in provider in the **Authentication > SIGN-IN METHOD** tab.
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`.
4. Run `npm install` to install the app's dependencies.
Expand Down
2 changes: 1 addition & 1 deletion messaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Getting Started
2. Register a web app by following [**Step 2: Register your app with Firebase**](https://firebase.google.com/docs/web/setup/#create-firebase-project).
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.
2. Remember to click "Register App" or "Continue to console" at the bottom of the "Add Firebase to your web app" flow.
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.
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.
3. Open Project and go to **Project settings > Cloud Messaging** and there in the **Web configuration** section click **Generate key pair** button.
4. Copy public key and in the `config.ts` file replace `<YOUR_PUBLIC_VAPID_KEY_HERE>` with your key.
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`.
Expand Down
2 changes: 1 addition & 1 deletion remote-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ see
Getting started
---------------

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.
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.
2. Set up Remote Config for your Firebase project:
1. In the Firebase console, open your project
2. Select Remote Config from the menu to view the Remote Config dashboard
Expand Down

0 comments on commit 03fb632

Please sign in to comment.