@firebase/auth 0.19.7 → 0.19.8-202211222730

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 (69) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/auth-public.d.ts +1 -0
  3. package/dist/auth.d.ts +1 -0
  4. package/dist/cordova/index.doc.d.ts +1 -1
  5. package/dist/cordova/index.js +2 -2
  6. package/dist/cordova/internal.js +2 -2
  7. package/dist/cordova/popup_redirect-a8346549.js +9843 -0
  8. package/dist/cordova/popup_redirect-a8346549.js.map +1 -0
  9. package/dist/cordova/{popup_redirect-58dc2c45.js → popup_redirect-d9cc1776.js} +2 -5
  10. package/dist/cordova/popup_redirect-d9cc1776.js.map +1 -0
  11. package/dist/cordova/src/model/public_types.d.ts +1 -0
  12. package/dist/cordova/src/model/user.d.ts +1 -0
  13. package/dist/esm2017/index-aeb752c7.js +9326 -0
  14. package/dist/esm2017/index-aeb752c7.js.map +1 -0
  15. package/dist/esm2017/{index-cff4f2fd.js → index-df24f795.js} +2 -5
  16. package/dist/esm2017/index-df24f795.js.map +1 -0
  17. package/dist/esm2017/index.doc.d.ts +1 -1
  18. package/dist/esm2017/index.js +1 -1
  19. package/dist/esm2017/internal.js +2 -2
  20. package/dist/esm2017/src/model/public_types.d.ts +1 -0
  21. package/dist/esm2017/src/model/user.d.ts +1 -0
  22. package/dist/esm5/{index-22e07d1b.js → index-0a5f195d.js} +2 -5
  23. package/dist/esm5/index-0a5f195d.js.map +1 -0
  24. package/dist/esm5/index-4481c672.js +11078 -0
  25. package/dist/esm5/index-4481c672.js.map +1 -0
  26. package/dist/esm5/index.doc.d.ts +1 -1
  27. package/dist/esm5/index.js +1 -1
  28. package/dist/esm5/internal.js +2 -2
  29. package/dist/esm5/src/model/public_types.d.ts +1 -0
  30. package/dist/esm5/src/model/user.d.ts +1 -0
  31. package/dist/index.doc.d.ts +1 -1
  32. package/dist/index.webworker.esm5.js +2 -5
  33. package/dist/index.webworker.esm5.js.map +1 -1
  34. package/dist/node/{index-2e359668.js → index-a974c3c2.js} +2 -5
  35. package/dist/node/index-a974c3c2.js.map +1 -0
  36. package/dist/node/index-e6b4b5f3.js +7235 -0
  37. package/dist/node/index-e6b4b5f3.js.map +1 -0
  38. package/dist/node/index.doc.d.ts +1 -1
  39. package/dist/node/index.js +1 -1
  40. package/dist/node/internal.js +1 -1
  41. package/dist/node/src/model/public_types.d.ts +1 -0
  42. package/dist/node/src/model/user.d.ts +1 -0
  43. package/dist/node-esm/{index-1011747c.js → index-08431ffc.js} +2 -5
  44. package/dist/node-esm/index-08431ffc.js.map +1 -0
  45. package/dist/node-esm/index-86cf27ec.js +6037 -0
  46. package/dist/node-esm/index-86cf27ec.js.map +1 -0
  47. package/dist/node-esm/index.doc.d.ts +1 -1
  48. package/dist/node-esm/index.js +1 -1
  49. package/dist/node-esm/internal.js +2 -2
  50. package/dist/node-esm/src/model/public_types.d.ts +1 -0
  51. package/dist/node-esm/src/model/user.d.ts +1 -0
  52. package/dist/rn/index.doc.d.ts +1 -1
  53. package/dist/rn/index.js +1 -1
  54. package/dist/rn/internal.js +1 -1
  55. package/dist/rn/phone-ae58d39f.js +8312 -0
  56. package/dist/rn/phone-ae58d39f.js.map +1 -0
  57. package/dist/rn/{phone-49cc5af7.js → phone-af9b87c1.js} +2 -5
  58. package/dist/rn/phone-af9b87c1.js.map +1 -0
  59. package/dist/rn/src/model/public_types.d.ts +1 -0
  60. package/dist/rn/src/model/user.d.ts +1 -0
  61. package/dist/src/model/public_types.d.ts +1 -0
  62. package/dist/src/model/user.d.ts +1 -0
  63. package/package.json +1 -1
  64. package/dist/cordova/popup_redirect-58dc2c45.js.map +0 -1
  65. package/dist/esm2017/index-cff4f2fd.js.map +0 -1
  66. package/dist/esm5/index-22e07d1b.js.map +0 -1
  67. package/dist/node/index-2e359668.js.map +0 -1
  68. package/dist/node-esm/index-1011747c.js.map +0 -1
  69. package/dist/rn/phone-49cc5af7.js.map +0 -1
@@ -21,4 +21,4 @@
21
21
  */
22
22
  export * from './index';
23
23
  export { cordovaPopupRedirectResolver } from './index.cordova';
24
- export { reactNativeLocalPersistence } from './index.rn';
24
+ export { reactNativeLocalPersistence, getReactNativePersistence } from './index.rn';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-2e359668.js');
5
+ var index = require('./index-e6b4b5f3.js');
6
6
  require('tslib');
7
7
  require('@firebase/util');
8
8
  require('@firebase/app');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-2e359668.js');
5
+ var index = require('./index-e6b4b5f3.js');
6
6
  var tslib = require('tslib');
7
7
  var util = require('@firebase/util');
8
8
  var app = require('@firebase/app');
@@ -588,6 +588,7 @@ export interface MultiFactorInfo {
588
588
  /**
589
589
  * The subclass of the {@link MultiFactorInfo} interface for phone number
590
590
  * second factors. The factorId of this second factor is {@link FactorId.PHONE}.
591
+ * @public
591
592
  */
592
593
  export interface PhoneMultiFactorInfo extends MultiFactorInfo {
593
594
  /** The phone number associated with the current second factor. */
@@ -38,6 +38,7 @@ export interface UserParameters {
38
38
  isAnonymous?: boolean | null;
39
39
  emailVerified?: boolean | null;
40
40
  tenantId?: string | null;
41
+ providerData?: MutableUserInfo[] | null;
41
42
  createdAt?: string | null;
42
43
  lastLoginAt?: string | null;
43
44
  }
@@ -1590,10 +1590,6 @@ class UserImpl {
1590
1590
  var { uid, auth, stsTokenManager } = _a, opt = __rest(_a, ["uid", "auth", "stsTokenManager"]);
1591
1591
  // For the user object, provider is always Firebase.
1592
1592
  this.providerId = "firebase" /* FIREBASE */;
1593
- this.emailVerified = false;
1594
- this.isAnonymous = false;
1595
- this.tenantId = null;
1596
- this.providerData = [];
1597
1593
  this.proactiveRefresh = new ProactiveRefresh(this);
1598
1594
  this.reloadUserInfo = null;
1599
1595
  this.reloadListener = null;
@@ -1608,6 +1604,7 @@ class UserImpl {
1608
1604
  this.photoURL = opt.photoURL || null;
1609
1605
  this.isAnonymous = opt.isAnonymous || false;
1610
1606
  this.tenantId = opt.tenantId || null;
1607
+ this.providerData = opt.providerData ? [...opt.providerData] : [];
1611
1608
  this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
1612
1609
  }
1613
1610
  async getIdToken(forceRefresh) {
@@ -6037,4 +6034,4 @@ class PhoneMultiFactorGenerator {
6037
6034
  AuthImpl.prototype.setPersistence = async () => { };
6038
6035
 
6039
6036
  export { sendPasswordResetEmail as $, ActionCodeOperation as A, prodErrorMap as B, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as C, initializeAuth as D, connectAuthEmulator as E, FactorId as F, AuthCredential as G, EmailAuthCredential as H, OAuthCredential as I, PhoneAuthCredential as J, inMemoryPersistence as K, EmailAuthProvider as L, FacebookAuthProvider as M, GoogleAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GithubAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, OAuthProvider as T, SAMLAuthProvider as U, TwitterAuthProvider as V, signInAnonymously as W, signInWithCredential as X, linkWithCredential as Y, reauthenticateWithCredential as Z, signInWithCustomToken as _, browserSessionPersistence as a, confirmPasswordReset as a0, applyActionCode as a1, checkActionCode as a2, verifyPasswordResetCode as a3, createUserWithEmailAndPassword as a4, signInWithEmailAndPassword as a5, sendSignInLinkToEmail as a6, isSignInWithEmailLink as a7, signInWithEmailLink as a8, fetchSignInMethodsForEmail as a9, _emulatorUrl as aA, _performApiRequest as aB, _isIOS7Or8 as aC, _isIOS as aD, _isAndroid as aE, _createError as aF, _isSafari as aG, _isIframe as aH, _isMobileBrowser as aI, _isIE10 as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, FetchProvider as aN, SAMLAuthCredential as aO, sendEmailVerification as aa, verifyBeforeUpdateEmail as ab, ActionCodeURL as ac, parseActionCodeURL as ad, updateProfile as ae, updateEmail as af, updatePassword as ag, getIdToken as ah, getIdTokenResult as ai, unlink as aj, getAdditionalUserInfo as ak, reload as al, getMultiFactorResolver as am, multiFactor as an, _getInstance as ao, _assert as ap, _signInWithCredential as aq, _reauthenticate as ar, _link as as, signInWithIdp as at, _fail as au, debugAssert as av, _persistenceKeyName as aw, _castAuth as ax, FederatedAuthProvider as ay, BaseOAuthProvider as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, getAuth as n, ProviderId as o, setPersistence as p, onIdTokenChanged as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, onAuthStateChanged as t, updatePhoneNumber as u, useDeviceLanguage as v, updateCurrentUser as w, signOut as x, deleteUser as y, debugErrorMap as z };
6040
- //# sourceMappingURL=index-1011747c.js.map
6037
+ //# sourceMappingURL=index-08431ffc.js.map