firebaseFunctions module
- Source:
Members
(inner, constant) database
- Source:
(inner, constant) firebase
- Source:
(inner, constant) firebaseConfig
- Source:
Methods
(static) removeDataFromFireBase(path)
removeDataFromFireBase - This function is used to remove data from firebase at a precise path
Parameters:
Name | Type | Description |
---|---|---|
path |
string | path to the data to be removed |
- Source:
(inner) getDataFromFireBase(uid, service)
Returns an object containing the user's data
Parameters:
Name | Type | Description |
---|---|---|
uid |
String | uid of the user |
service |
String | Service where the desired data is stored. |
- Source:
Returns:
return a promise of an object containing the user's data
(inner) getDataFromFireBase()
Returns an object containing the all user
- Source:
Returns:
return a promise of an object containing the all user
(inner) getDataFromFireBase(service)
Returns an object containing the server data
Parameters:
Name | Type | Description |
---|---|---|
service |
String | Service where the desired data is stored. |
- Source:
Returns:
return a promise of an object containing the server data
(inner) login(req, res)
Firebase function which allows the user to login.
Parameters:
Name | Type | Description |
---|---|---|
req |
Object | Express request object |
res |
Object | Express response object |
- Source:
(inner) login(req, res)
Firebase function which allows the user to register.
Parameters:
Name | Type | Description |
---|---|---|
req |
Object | Express request object |
res |
Object | Express response object |
- Source:
(inner) login(req, res)
Firebase function that allows the user to reset the password.
Parameters:
Name | Type | Description |
---|---|---|
req |
Object | Express request object |
res |
Object | Express response object |
- Source:
(inner) setDataInDb(path, data)
Function to write data to a specific path in Firebase database
Parameters:
Name | Type | Description |
---|---|---|
path |
* | The path in the Firebase database where the data will be written to. |
data |
* | The data that will be written to the specified path. |
- Source: