@firebase/auth 0.18.1 → 0.18.2-canary.5c9ad7e0b

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/auth-public.d.ts +1 -1
  3. package/dist/auth.d.ts +1 -2
  4. package/dist/cordova/index.js +2 -2
  5. package/dist/cordova/internal.js +2 -2
  6. package/dist/cordova/{popup_redirect-d25c8345.js → popup_redirect-84c74ca6.js} +17 -9
  7. package/dist/cordova/popup_redirect-84c74ca6.js.map +1 -0
  8. package/dist/cordova/src/core/credentials/oauth.d.ts +1 -2
  9. package/dist/esm2017/{index-d81b283a.js → index-1870bc0f.js} +17 -9
  10. package/dist/esm2017/index-1870bc0f.js.map +1 -0
  11. package/dist/esm2017/index.js +1 -1
  12. package/dist/esm2017/internal.js +2 -2
  13. package/dist/esm2017/src/core/credentials/oauth.d.ts +1 -2
  14. package/dist/esm5/{index-f7c7b945.js → index-58572547.js} +17 -9
  15. package/dist/esm5/index-58572547.js.map +1 -0
  16. package/dist/esm5/index.js +1 -1
  17. package/dist/esm5/internal.js +2 -2
  18. package/dist/esm5/src/core/credentials/oauth.d.ts +1 -2
  19. package/dist/index.webworker.esm5.js +16 -8
  20. package/dist/index.webworker.esm5.js.map +1 -1
  21. package/dist/node/{index-7fb95db8.js → index-53f145f0.js} +17 -9
  22. package/dist/node/index-53f145f0.js.map +1 -0
  23. package/dist/node/index.js +1 -1
  24. package/dist/node/internal.js +1 -1
  25. package/dist/node/src/core/credentials/oauth.d.ts +1 -2
  26. package/dist/rn/{enum_maps-dfd404fa.js → enum_maps-b8531d74.js} +17 -9
  27. package/dist/rn/enum_maps-b8531d74.js.map +1 -0
  28. package/dist/rn/index.js +1 -1
  29. package/dist/rn/internal.js +1 -1
  30. package/dist/rn/src/core/credentials/oauth.d.ts +1 -2
  31. package/dist/src/core/credentials/oauth.d.ts +1 -2
  32. package/package.json +6 -6
  33. package/dist/cordova/popup_redirect-d25c8345.js.map +0 -1
  34. package/dist/esm2017/index-d81b283a.js.map +0 -1
  35. package/dist/esm5/index-f7c7b945.js.map +0 -1
  36. package/dist/node/index-7fb95db8.js.map +0 -1
  37. package/dist/rn/enum_maps-dfd404fa.js.map +0 -1
@@ -1811,6 +1811,7 @@ var UserImpl = /** @class */ (function () {
1811
1811
  this.phoneNumber = opt.phoneNumber || null;
1812
1812
  this.photoURL = opt.photoURL || null;
1813
1813
  this.isAnonymous = opt.isAnonymous || false;
1814
+ this.tenantId = opt.tenantId || null;
1814
1815
  this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
1815
1816
  }
1816
1817
  UserImpl.prototype.getIdToken = function (forceRefresh) {
@@ -3064,7 +3065,9 @@ function connectAuthEmulator(auth, url, options) {
3064
3065
  protocol: protocol.replace(':', ''),
3065
3066
  options: Object.freeze({ disableWarnings: disableWarnings })
3066
3067
  });
3067
- emitEmulatorWarning(disableWarnings);
3068
+ if (!disableWarnings) {
3069
+ emitEmulatorWarning();
3070
+ }
3068
3071
  }
3069
3072
  function extractProtocol(url) {
3070
3073
  var protocolEnd = url.indexOf(':');
@@ -3097,7 +3100,7 @@ function parsePort(portStr) {
3097
3100
  }
3098
3101
  return port;
3099
3102
  }
3100
- function emitEmulatorWarning(disableBanner) {
3103
+ function emitEmulatorWarning() {
3101
3104
  function attachBanner() {
3102
3105
  var el = document.createElement('p');
3103
3106
  var sty = el.style;
@@ -3122,8 +3125,7 @@ function emitEmulatorWarning(disableBanner) {
3122
3125
  ' production credentials.');
3123
3126
  }
3124
3127
  if (typeof window !== 'undefined' &&
3125
- typeof document !== 'undefined' &&
3126
- !disableBanner) {
3128
+ typeof document !== 'undefined') {
3127
3129
  if (document.readyState === 'loading') {
3128
3130
  window.addEventListener('DOMContentLoaded', attachBanner);
3129
3131
  }
@@ -3579,7 +3581,11 @@ var OAuthCredential = /** @class */ (function (_super) {
3579
3581
  return null;
3580
3582
  }
3581
3583
  var cred = new OAuthCredential(providerId, signInMethod);
3582
- Object.assign(cred, rest);
3584
+ cred.idToken = rest.idToken || undefined;
3585
+ cred.accessToken = rest.accessToken || undefined;
3586
+ cred.secret = rest.secret;
3587
+ cred.nonce = rest.nonce;
3588
+ cred.pendingToken = rest.pendingToken || null;
3583
3589
  return cred;
3584
3590
  };
3585
3591
  /** @internal */
@@ -4181,7 +4187,7 @@ var OAuthProvider = /** @class */ (function (_super) {
4181
4187
  * or the ID token string.
4182
4188
  */
4183
4189
  OAuthProvider.prototype.credential = function (params) {
4184
- return this._credential(params);
4190
+ return this._credential(tslib.__assign(tslib.__assign({}, params), { nonce: params.rawNonce }));
4185
4191
  };
4186
4192
  /** An internal credential method that accepts more permissive options */
4187
4193
  OAuthProvider.prototype._credential = function (params) {
@@ -4225,7 +4231,7 @@ var OAuthProvider = /** @class */ (function (_super) {
4225
4231
  return new OAuthProvider(providerId)._credential({
4226
4232
  idToken: oauthIdToken,
4227
4233
  accessToken: oauthAccessToken,
4228
- rawNonce: nonce,
4234
+ nonce: nonce,
4229
4235
  pendingToken: pendingToken
4230
4236
  });
4231
4237
  }
@@ -6838,7 +6844,7 @@ function multiFactor(user) {
6838
6844
  }
6839
6845
 
6840
6846
  var name = "@firebase/auth";
6841
- var version = "0.18.1";
6847
+ var version = "0.18.2-canary.5c9ad7e0b";
6842
6848
 
6843
6849
  /**
6844
6850
  * @license
@@ -6997,6 +7003,8 @@ function registerAuth(clientPlatform) {
6997
7003
  return (function (auth) { return new AuthInterop(auth); })(auth);
6998
7004
  }, "PRIVATE" /* PRIVATE */).setInstantiationMode("EXPLICIT" /* EXPLICIT */));
6999
7005
  app.registerVersion(name, version, getVersionForPlatform(clientPlatform));
7006
+ // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
7007
+ app.registerVersion(name, version, 'cjs5');
7000
7008
  }
7001
7009
 
7002
7010
  /**
@@ -7191,4 +7199,4 @@ exports.updateProfile = updateProfile;
7191
7199
  exports.useDeviceLanguage = useDeviceLanguage;
7192
7200
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
7193
7201
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
7194
- //# sourceMappingURL=index-7fb95db8.js.map
7202
+ //# sourceMappingURL=index-53f145f0.js.map