@firebase/auth 0.19.6 → 0.19.7-202202622812

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 (59) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/auth-public.d.ts +9 -0
  3. package/dist/auth.d.ts +9 -0
  4. package/dist/cordova/index.js +2 -2
  5. package/dist/cordova/internal.js +2 -2
  6. package/dist/cordova/{popup_redirect-0a21dcc2.js → popup_redirect-26eed48e.js} +8 -8
  7. package/dist/cordova/{popup_redirect-0a21dcc2.js.map → popup_redirect-26eed48e.js.map} +1 -1
  8. package/dist/cordova/popup_redirect-916ad4e3.js +9846 -0
  9. package/dist/cordova/popup_redirect-916ad4e3.js.map +1 -0
  10. package/dist/cordova/src/mfa/mfa_info.d.ts +3 -3
  11. package/dist/cordova/src/model/public_types.d.ts +8 -0
  12. package/dist/esm2017/index-137027e2.js +9329 -0
  13. package/dist/esm2017/index-137027e2.js.map +1 -0
  14. package/dist/esm2017/{index-bc414788.js → index-c4037ece.js} +4 -4
  15. package/dist/esm2017/index-c4037ece.js.map +1 -0
  16. package/dist/esm2017/index.js +1 -1
  17. package/dist/esm2017/internal.js +2 -2
  18. package/dist/esm2017/src/mfa/mfa_info.d.ts +3 -3
  19. package/dist/esm2017/src/model/public_types.d.ts +8 -0
  20. package/dist/esm5/{index-fb0ec9ba.js → index-3fdcc389.js} +8 -8
  21. package/dist/esm5/index-3fdcc389.js.map +1 -0
  22. package/dist/esm5/index-677c4ab3.js +11081 -0
  23. package/dist/esm5/index-677c4ab3.js.map +1 -0
  24. package/dist/esm5/index.js +1 -1
  25. package/dist/esm5/internal.js +2 -2
  26. package/dist/esm5/src/mfa/mfa_info.d.ts +3 -3
  27. package/dist/esm5/src/model/public_types.d.ts +8 -0
  28. package/dist/index.webworker.esm5.js +8 -8
  29. package/dist/index.webworker.esm5.js.map +1 -1
  30. package/dist/node/{index-45556172.js → index-600c42fb.js} +8 -8
  31. package/dist/node/index-600c42fb.js.map +1 -0
  32. package/dist/node/index-e20c0ffa.js +7238 -0
  33. package/dist/node/index-e20c0ffa.js.map +1 -0
  34. package/dist/node/index.js +1 -1
  35. package/dist/node/internal.js +1 -1
  36. package/dist/node/src/mfa/mfa_info.d.ts +3 -3
  37. package/dist/node/src/model/public_types.d.ts +8 -0
  38. package/dist/node-esm/index-8da78d50.js +6040 -0
  39. package/dist/node-esm/{index-c4fe16cb.js.map → index-8da78d50.js.map} +1 -1
  40. package/dist/node-esm/{index-c4fe16cb.js → index-e64e84ee.js} +4 -4
  41. package/dist/{node/index-45556172.js.map → node-esm/index-e64e84ee.js.map} +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/mfa/mfa_info.d.ts +3 -3
  45. package/dist/node-esm/src/model/public_types.d.ts +8 -0
  46. package/dist/rn/index.js +51 -3
  47. package/dist/rn/index.js.map +1 -1
  48. package/dist/rn/internal.js +1 -1
  49. package/dist/rn/phone-2bea12e1.js +8315 -0
  50. package/dist/rn/{phone-3071a546.js.map → phone-2bea12e1.js.map} +1 -1
  51. package/dist/rn/{phone-3071a546.js → phone-d30190e8.js} +8 -8
  52. package/dist/rn/phone-d30190e8.js.map +1 -0
  53. package/dist/rn/src/mfa/mfa_info.d.ts +3 -3
  54. package/dist/rn/src/model/public_types.d.ts +8 -0
  55. package/dist/src/mfa/mfa_info.d.ts +3 -3
  56. package/dist/src/model/public_types.d.ts +8 -0
  57. package/package.json +2 -2
  58. package/dist/esm2017/index-bc414788.js.map +0 -1
  59. package/dist/esm5/index-fb0ec9ba.js.map +0 -1
@@ -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-bc414788.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-137027e2.js';
2
2
  import '@firebase/util';
3
3
  import '@firebase/app';
4
4
  import 'tslib';
@@ -1,5 +1,5 @@
1
- import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-bc414788.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, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay 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-bc414788.js';
1
+ import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-137027e2.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, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay 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-137027e2.js';
3
3
  import { querystringDecode } from '@firebase/util';
4
4
  import '@firebase/app';
5
5
  import 'tslib';
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { FactorId, MultiFactorInfo } from '../model/public_types';
17
+ import { FactorId, MultiFactorInfo, PhoneMultiFactorInfo } from '../model/public_types';
18
18
  import { MfaEnrollment } from '../api/account_management/mfa';
19
19
  import { AuthInternal } from '../model/auth';
20
20
  export declare abstract class MultiFactorInfoImpl implements MultiFactorInfo {
@@ -25,8 +25,8 @@ export declare abstract class MultiFactorInfoImpl implements MultiFactorInfo {
25
25
  protected constructor(factorId: FactorId, response: MfaEnrollment);
26
26
  static _fromServerResponse(auth: AuthInternal, enrollment: MfaEnrollment): MultiFactorInfoImpl;
27
27
  }
28
- export declare class PhoneMultiFactorInfo extends MultiFactorInfoImpl {
28
+ export declare class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl implements PhoneMultiFactorInfo {
29
29
  readonly phoneNumber: string;
30
30
  private constructor();
31
- static _fromServerResponse(_auth: AuthInternal, enrollment: MfaEnrollment): PhoneMultiFactorInfo;
31
+ static _fromServerResponse(_auth: AuthInternal, enrollment: MfaEnrollment): PhoneMultiFactorInfoImpl;
32
32
  }
@@ -585,6 +585,14 @@ export interface MultiFactorInfo {
585
585
  /** The identifier of the second factor. */
586
586
  readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
587
587
  }
588
+ /**
589
+ * The subclass of the {@link MultiFactorInfo} interface for phone number
590
+ * second factors. The factorId of this second factor is {@link FactorId.PHONE}.
591
+ */
592
+ export interface PhoneMultiFactorInfo extends MultiFactorInfo {
593
+ /** The phone number associated with the current second factor. */
594
+ readonly phoneNumber: string;
595
+ }
588
596
  /**
589
597
  * The class used to facilitate recovery from {@link MultiFactorError} when a user needs to
590
598
  * provide a second factor to sign in.
@@ -5527,23 +5527,23 @@ var MultiFactorInfoImpl = /** @class */ (function () {
5527
5527
  }
5528
5528
  MultiFactorInfoImpl._fromServerResponse = function (auth, enrollment) {
5529
5529
  if ('phoneInfo' in enrollment) {
5530
- return PhoneMultiFactorInfo._fromServerResponse(auth, enrollment);
5530
+ return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);
5531
5531
  }
5532
5532
  return _fail(auth, "internal-error" /* INTERNAL_ERROR */);
5533
5533
  };
5534
5534
  return MultiFactorInfoImpl;
5535
5535
  }());
5536
- var PhoneMultiFactorInfo = /** @class */ (function (_super) {
5537
- __extends(PhoneMultiFactorInfo, _super);
5538
- function PhoneMultiFactorInfo(response) {
5536
+ var PhoneMultiFactorInfoImpl = /** @class */ (function (_super) {
5537
+ __extends(PhoneMultiFactorInfoImpl, _super);
5538
+ function PhoneMultiFactorInfoImpl(response) {
5539
5539
  var _this = _super.call(this, "phone" /* PHONE */, response) || this;
5540
5540
  _this.phoneNumber = response.phoneInfo;
5541
5541
  return _this;
5542
5542
  }
5543
- PhoneMultiFactorInfo._fromServerResponse = function (_auth, enrollment) {
5544
- return new PhoneMultiFactorInfo(enrollment);
5543
+ PhoneMultiFactorInfoImpl._fromServerResponse = function (_auth, enrollment) {
5544
+ return new PhoneMultiFactorInfoImpl(enrollment);
5545
5545
  };
5546
- return PhoneMultiFactorInfo;
5546
+ return PhoneMultiFactorInfoImpl;
5547
5547
  }(MultiFactorInfoImpl));
5548
5548
 
5549
5549
  /**
@@ -11078,4 +11078,4 @@ function getAuth(app) {
11078
11078
  registerAuth("Browser" /* BROWSER */);
11079
11079
 
11080
11080
  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, _clearRedirectOutcomes as aA, _getRedirectResult as aB, _castAuth as aC, UserImpl as aD, AuthImpl as aE, _getClientVersion as aF, _generateEventId as aG, AuthPopup as aH, FetchProvider as aI, SAMLAuthCredential as aJ, 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, _isAndroid as ao, _isIOS7Or8 as ap, _isIOS as aq, _fail as ar, _getRedirectUrl as as, debugAssert as at, _getProjectConfig as au, _createError as av, _assert as aw, AuthEventManager as ax, _getInstance as ay, _persistenceKeyName 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 };
11081
- //# sourceMappingURL=index-fb0ec9ba.js.map
11081
+ //# sourceMappingURL=index-3fdcc389.js.map