fixed typo

This commit is contained in:
Peter Svensson
2019-07-02 20:46:39 +02:00
parent 2cfbd1ef86
commit e248109ffc

View File

@ -9,7 +9,7 @@ that it takes a service account credential token as configuration.
This means that the nodes can run outside of the normal security rules, in admin mode, which is useful when running on the back-end.
The configuration needs two parameters, the first is the text of the service account credentials private key file. This can be found by going to the firebase console, then to the cogwheel icon at the top left then to project settings and then "Service Accounts". Click "Generate new private key".
The second parameter is the database url for the database, and the url has the format of "https://myprojectname.firebaseio.com" and can also be found in the above place in the firebase console.
The second parameter is the database url for the database. The url has has a format like "https://myprojectname.firebaseio.com" and can also be found in the above place in the firebase console.
After initializing, the reference to the firebase SDK is stored in the global context variable 'firebase', which can be used
in any function like this;