backend-manager 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -66,4 +66,4 @@
66
66
  "src/",
67
67
  "templates/"
68
68
  ]
69
- }
69
+ }
@@ -20,7 +20,7 @@ Module.prototype.main = function () {
20
20
  let uuid = null;
21
21
  let error;
22
22
 
23
- let customToken = null;
23
+ let signInToken = null;
24
24
 
25
25
  if (payload.data.authenticationToken || payload.data.backendManagerKey) {
26
26
  await self.Api.resolveUser({adminRequired: true})
@@ -28,7 +28,7 @@ Module.prototype.main = function () {
28
28
  uid = _.get(user, 'auth.uid', null);
29
29
  await self.libraries.admin.auth().createCustomToken(uid)
30
30
  .then(token => {
31
- customToken = token;
31
+ signInToken = token;
32
32
  })
33
33
  .catch(e => {
34
34
  error = assistant.errorManager(`Failed to create custom token: ${e}`, {code: 500, sentry: false, send: false, log: false}).error
@@ -76,7 +76,7 @@ Module.prototype.main = function () {
76
76
  return resolve({
77
77
  data: {
78
78
  uuid: uuid,
79
- customToken: customToken,
79
+ signInToken: signInToken,
80
80
  timestamp: new Date().toISOString(),
81
81
  ip: assistant.request.ip,
82
82
  country: assistant.request.country,