Skip to content

Commit b8da199

Browse files
melaniedejongandrewsg
authored andcommitted
Fixed Initialize Firebase section and add snippet (GoogleCloudPlatform#1512)
RE: https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine#adding_the_firebase_authentication_user_interface This fails because the projectId and messagingSenderId are missing. I have also added snippet anchors to include snippet in the doc.
1 parent bf1e0d7 commit b8da199

File tree

1 file changed

+6
-2
lines changed
  • appengine/standard/firebase/firenotes/frontend

1 file changed

+6
-2
lines changed

appengine/standard/firebase/firenotes/frontend/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ $(function(){
1919
// backend's app.yaml file.
2020
var backendHostUrl = '<your-backend-url>';
2121

22+
// [START gae_firenotes_config]
23+
// Obtain the following from the "Add Firebase to your web app" dialogue
2224
// Initialize Firebase
23-
// TODO: Replace with your project's customized code snippet
2425
var config = {
2526
apiKey: "<API_KEY>",
2627
authDomain: "<PROJECT_ID>.firebaseapp.com",
2728
databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
29+
projectId: "<PROJECT_ID>",
2830
storageBucket: "<BUCKET>.appspot.com",
31+
messagingSenderId: "<MESSAGING_SENDER_ID>"
2932
};
30-
33+
// [END gae_firenotes_config]
34+
3135
// This is passed into the backend to authenticate the user.
3236
var userIdToken = null;
3337

0 commit comments

Comments
 (0)