@firebase/auth 0.19.7 → 0.19.8-canary.50de44c2e

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 (65) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/auth-public.d.ts +3 -2
  3. package/dist/auth.d.ts +3 -2
  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-58dc2c45.js → popup_redirect-194657e6.js} +3 -6
  8. package/dist/cordova/popup_redirect-194657e6.js.map +1 -0
  9. package/dist/cordova/src/model/public_types.d.ts +3 -2
  10. package/dist/cordova/src/model/user.d.ts +1 -0
  11. package/dist/cordova/src/platform_react_native/persistence/react_native.d.ts +1 -1
  12. package/dist/esm2017/{index-cff4f2fd.js → index-bf1f8433.js} +3 -6
  13. package/dist/esm2017/index-bf1f8433.js.map +1 -0
  14. package/dist/esm2017/index.doc.d.ts +1 -1
  15. package/dist/esm2017/index.js +1 -1
  16. package/dist/esm2017/internal.js +2 -2
  17. package/dist/esm2017/src/model/public_types.d.ts +3 -2
  18. package/dist/esm2017/src/model/user.d.ts +1 -0
  19. package/dist/esm2017/src/platform_react_native/persistence/react_native.d.ts +1 -1
  20. package/dist/esm5/{index-22e07d1b.js → index-8a81cbfc.js} +3 -6
  21. package/dist/esm5/index-8a81cbfc.js.map +1 -0
  22. package/dist/esm5/index.doc.d.ts +1 -1
  23. package/dist/esm5/index.js +1 -1
  24. package/dist/esm5/internal.js +2 -2
  25. package/dist/esm5/src/model/public_types.d.ts +3 -2
  26. package/dist/esm5/src/model/user.d.ts +1 -0
  27. package/dist/esm5/src/platform_react_native/persistence/react_native.d.ts +1 -1
  28. package/dist/index.doc.d.ts +1 -1
  29. package/dist/index.webworker.esm5.js +2 -5
  30. package/dist/index.webworker.esm5.js.map +1 -1
  31. package/dist/node/{index-2e359668.js → index-fe37936f.js} +3 -6
  32. package/dist/node/index-fe37936f.js.map +1 -0
  33. package/dist/node/index.doc.d.ts +1 -1
  34. package/dist/node/index.js +1 -1
  35. package/dist/node/internal.js +1 -1
  36. package/dist/node/src/model/public_types.d.ts +3 -2
  37. package/dist/node/src/model/user.d.ts +1 -0
  38. package/dist/node/src/platform_react_native/persistence/react_native.d.ts +1 -1
  39. package/dist/node-esm/{index-1011747c.js → index-041a60d6.js} +3 -6
  40. package/dist/node-esm/index-041a60d6.js.map +1 -0
  41. package/dist/node-esm/index.doc.d.ts +1 -1
  42. package/dist/node-esm/index.js +1 -1
  43. package/dist/node-esm/internal.js +2 -2
  44. package/dist/node-esm/src/model/public_types.d.ts +3 -2
  45. package/dist/node-esm/src/model/user.d.ts +1 -0
  46. package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +1 -1
  47. package/dist/rn/index.doc.d.ts +1 -1
  48. package/dist/rn/index.js +2 -2
  49. package/dist/rn/index.js.map +1 -1
  50. package/dist/rn/internal.js +1 -1
  51. package/dist/rn/{phone-49cc5af7.js → phone-83d15b50.js} +3 -6
  52. package/dist/rn/phone-83d15b50.js.map +1 -0
  53. package/dist/rn/src/model/public_types.d.ts +3 -2
  54. package/dist/rn/src/model/user.d.ts +1 -0
  55. package/dist/rn/src/platform_react_native/persistence/react_native.d.ts +1 -1
  56. package/dist/src/model/public_types.d.ts +3 -2
  57. package/dist/src/model/user.d.ts +1 -0
  58. package/dist/src/platform_react_native/persistence/react_native.d.ts +1 -1
  59. package/package.json +6 -6
  60. package/dist/cordova/popup_redirect-58dc2c45.js.map +0 -1
  61. package/dist/esm2017/index-cff4f2fd.js.map +0 -1
  62. package/dist/esm5/index-22e07d1b.js.map +0 -1
  63. package/dist/node/index-2e359668.js.map +0 -1
  64. package/dist/node-esm/index-1011747c.js.map +0 -1
  65. 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';
@@ -1,4 +1,4 @@
1
- export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-22e07d1b.js';
1
+ export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-8a81cbfc.js';
2
2
  import 'tslib';
3
3
  import '@firebase/util';
4
4
  import '@firebase/app';
@@ -1,5 +1,5 @@
1
- import { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-22e07d1b.js';
2
- export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-22e07d1b.js';
1
+ import { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-8a81cbfc.js';
2
+ export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-8a81cbfc.js';
3
3
  import { __awaiter, __generator, __extends } from 'tslib';
4
4
  import { querystringDecode } from '@firebase/util';
5
5
  import '@firebase/app';
@@ -587,7 +587,8 @@ export interface MultiFactorInfo {
587
587
  }
588
588
  /**
589
589
  * The subclass of the {@link MultiFactorInfo} interface for phone number
590
- * second factors. The factorId of this second factor is {@link FactorId.PHONE}.
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. */
@@ -808,7 +809,7 @@ export interface PhoneMultiFactorEnrollInfoOptions {
808
809
  session: MultiFactorSession;
809
810
  }
810
811
  /**
811
- * Options used for signing-in with a second factor.
812
+ * Options used for signing in with a second factor.
812
813
  *
813
814
  * @public
814
815
  */
@@ -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
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { Persistence, ReactNativeAsyncStorage } from '../../model/public_types';
18
18
  /**
19
- * Returns a persistence object that wraps AsyncStorage imported from
19
+ * Returns a persistence object that wraps `AsyncStorage` imported from
20
20
  * `react-native` or `@react-native-community/async-storage`, and can
21
21
  * be used in the persistence dependency field in {@link initializeAuth}.
22
22
  *
@@ -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';
@@ -522,7 +522,7 @@ function _initializeAuthInstance(auth, deps) {
522
522
  }
523
523
 
524
524
  var name = "@firebase/auth";
525
- var version = "0.19.7";
525
+ var version = "0.19.8-canary.50de44c2e";
526
526
 
527
527
  /**
528
528
  * @license
@@ -1836,10 +1836,6 @@ var UserImpl = /** @class */ (function () {
1836
1836
  var uid = _a.uid, auth = _a.auth, stsTokenManager = _a.stsTokenManager, opt = __rest(_a, ["uid", "auth", "stsTokenManager"]);
1837
1837
  // For the user object, provider is always Firebase.
1838
1838
  this.providerId = "firebase" /* FIREBASE */;
1839
- this.emailVerified = false;
1840
- this.isAnonymous = false;
1841
- this.tenantId = null;
1842
- this.providerData = [];
1843
1839
  this.proactiveRefresh = new ProactiveRefresh(this);
1844
1840
  this.reloadUserInfo = null;
1845
1841
  this.reloadListener = null;
@@ -1854,6 +1850,7 @@ var UserImpl = /** @class */ (function () {
1854
1850
  this.photoURL = opt.photoURL || null;
1855
1851
  this.isAnonymous = opt.isAnonymous || false;
1856
1852
  this.tenantId = opt.tenantId || null;
1853
+ this.providerData = opt.providerData ? __spreadArray([], opt.providerData) : [];
1857
1854
  this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
1858
1855
  }
1859
1856
  UserImpl.prototype.getIdToken = function (forceRefresh) {