You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to change the firebase project name in *.firebaserc* file.
19
+
You need to change the firebase project name in _.firebaserc_ file.
20
20
21
21
```
22
22
{
@@ -26,10 +26,9 @@ You need to change the firebase project name in *.firebaserc* file.
26
26
}
27
27
```
28
28
29
+
## Updating firebase config.json
29
30
30
-
## Updating firebase permissions.json
31
-
32
-
You need to update your firebase project permissions in *functions/src/auth/permissions.json* to match the permissions generated for your project.
31
+
You need to update your project config json in _functions/src/certificates/config.json_ to match the firebase permission json generated for your project.
33
32
34
33
```
35
34
{
@@ -46,13 +45,12 @@ You need to update your firebase project permissions in *functions/src/auth/perm
46
45
}
47
46
```
48
47
49
-
After that, you can log in to firebase in your terminal
48
+
After that, you can log in to firebase in your terminal
50
49
51
50
```
52
51
firebase login
53
52
```
54
53
55
-
56
54
## Deploy to firebase
57
55
58
56
To deploy functions to firebase
@@ -63,28 +61,31 @@ firebase deploy
63
61
64
62
## Read values from the request
65
63
66
-
Content Type\n
67
-
Request Body\n
64
+
Content Type\n
65
+
Request Body\n
68
66
Behavior\n
69
67
70
68
```
71
-
application/json
72
-
'{"name":"John"}'
69
+
application/json
70
+
'{"name":"John"}'
73
71
request.body.name equals 'John'
74
72
```
73
+
75
74
```
76
-
application/octet-stream
77
-
'my text'
75
+
application/octet-stream
76
+
'my text'
78
77
request.body equals '6d792074657874' (the raw bytes of the request; see the Node.js Buffer documentation)
0 commit comments