@firebase/auth 0.23.2-canary.ce6189631 → 0.23.2-canary.d41ee2f27

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 (52) hide show
  1. package/dist/browser-cjs/{index-68a7ec4c.js → index-5b853c36.js} +27 -10
  2. package/dist/browser-cjs/index-5b853c36.js.map +1 -0
  3. package/dist/browser-cjs/index.js +1 -1
  4. package/dist/browser-cjs/internal.js +1 -1
  5. package/dist/browser-cjs/src/mfa/mfa_session.d.ts +3 -3
  6. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +1 -0
  7. package/dist/cordova/index.js +2 -2
  8. package/dist/cordova/internal.js +9 -8
  9. package/dist/cordova/internal.js.map +1 -1
  10. package/dist/cordova/{popup_redirect-2dcc9534.js → popup_redirect-a50cd6b4.js} +23 -7
  11. package/dist/cordova/{popup_redirect-2dcc9534.js.map → popup_redirect-a50cd6b4.js.map} +1 -1
  12. package/dist/cordova/src/mfa/mfa_session.d.ts +3 -3
  13. package/dist/cordova/test/helpers/integration/helpers.d.ts +1 -0
  14. package/dist/esm2017/{index-5924628c.js → index-85273ccb.js} +27 -10
  15. package/dist/esm2017/index-85273ccb.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_session.d.ts +3 -3
  19. package/dist/esm2017/test/helpers/integration/helpers.d.ts +1 -0
  20. package/dist/esm5/{index-aca388da.js → index-74785635.js} +30 -13
  21. package/dist/esm5/index-74785635.js.map +1 -0
  22. package/dist/esm5/index.js +1 -1
  23. package/dist/esm5/internal.js +2 -2
  24. package/dist/esm5/src/mfa/mfa_session.d.ts +3 -3
  25. package/dist/esm5/test/helpers/integration/helpers.d.ts +1 -0
  26. package/dist/index.webworker.esm5.js +22 -6
  27. package/dist/index.webworker.esm5.js.map +1 -1
  28. package/dist/node/index.js +1 -1
  29. package/dist/node/internal.js +1 -1
  30. package/dist/node/src/mfa/mfa_session.d.ts +3 -3
  31. package/dist/node/test/helpers/integration/helpers.d.ts +1 -0
  32. package/dist/node/{totp-5a831fa0.js → totp-82fd167a.js} +30 -13
  33. package/dist/node/{totp-5a831fa0.js.map → totp-82fd167a.js.map} +1 -1
  34. package/dist/node-esm/index.js +1 -1
  35. package/dist/node-esm/internal.js +2 -2
  36. package/dist/node-esm/src/mfa/mfa_session.d.ts +3 -3
  37. package/dist/node-esm/test/helpers/integration/helpers.d.ts +1 -0
  38. package/dist/node-esm/{totp-20565c98.js → totp-85567000.js} +27 -10
  39. package/dist/node-esm/{totp-20565c98.js.map → totp-85567000.js.map} +1 -1
  40. package/dist/rn/index.js +1 -1
  41. package/dist/rn/internal.js +8 -7
  42. package/dist/rn/internal.js.map +1 -1
  43. package/dist/rn/{phone-def44917.js → phone-13bcb9c1.js} +23 -7
  44. package/dist/rn/{phone-def44917.js.map → phone-13bcb9c1.js.map} +1 -1
  45. package/dist/rn/src/mfa/mfa_session.d.ts +3 -3
  46. package/dist/rn/test/helpers/integration/helpers.d.ts +1 -0
  47. package/dist/src/mfa/mfa_session.d.ts +3 -3
  48. package/dist/test/helpers/integration/helpers.d.ts +1 -0
  49. package/package.json +6 -6
  50. package/dist/browser-cjs/index-68a7ec4c.js.map +0 -1
  51. package/dist/esm2017/index-5924628c.js.map +0 -1
  52. package/dist/esm5/index-aca388da.js.map +0 -1
@@ -8164,14 +8164,30 @@ function deleteUser(user) {
8164
8164
  });
8165
8165
  }
8166
8166
 
8167
+ /**
8168
+ * @license
8169
+ * Copyright 2020 Google LLC
8170
+ *
8171
+ * Licensed under the Apache License, Version 2.0 (the "License");
8172
+ * you may not use this file except in compliance with the License.
8173
+ * You may obtain a copy of the License at
8174
+ *
8175
+ * http://www.apache.org/licenses/LICENSE-2.0
8176
+ *
8177
+ * Unless required by applicable law or agreed to in writing, software
8178
+ * distributed under the License is distributed on an "AS IS" BASIS,
8179
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8180
+ * See the License for the specific language governing permissions and
8181
+ * limitations under the License.
8182
+ */
8167
8183
  var MultiFactorSessionImpl = /** @class */ (function () {
8168
- function MultiFactorSessionImpl(type, credential, auth) {
8184
+ function MultiFactorSessionImpl(type, credential, user) {
8169
8185
  this.type = type;
8170
8186
  this.credential = credential;
8171
- this.auth = auth;
8187
+ this.user = user;
8172
8188
  }
8173
- MultiFactorSessionImpl._fromIdtoken = function (idToken, auth) {
8174
- return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken, auth);
8189
+ MultiFactorSessionImpl._fromIdtoken = function (idToken, user) {
8190
+ return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken, user);
8175
8191
  };
8176
8192
  MultiFactorSessionImpl._fromMfaPendingCredential = function (mfaPendingCredential) {
8177
8193
  return new MultiFactorSessionImpl("signin" /* MultiFactorSessionType.SIGN_IN */, mfaPendingCredential);
@@ -8355,7 +8371,7 @@ var MultiFactorUserImpl = /** @class */ (function () {
8355
8371
  case 0:
8356
8372
  _b = (_a = MultiFactorSessionImpl)._fromIdtoken;
8357
8373
  return [4 /*yield*/, this.user.getIdToken()];
8358
- case 1: return [2 /*return*/, _b.apply(_a, [_c.sent(), this.user.auth])];
8374
+ case 1: return [2 /*return*/, _b.apply(_a, [_c.sent(), this.user])];
8359
8375
  }
8360
8376
  });
8361
8377
  });
@@ -8457,7 +8473,7 @@ function multiFactor(user) {
8457
8473
  }
8458
8474
 
8459
8475
  var name = "@firebase/auth";
8460
- var version = "0.23.2-canary.ce6189631";
8476
+ var version = "0.23.2-canary.d41ee2f27";
8461
8477
 
8462
8478
  /**
8463
8479
  * @license
@@ -10661,4 +10677,4 @@ function generateNoEvent() {
10661
10677
  }
10662
10678
 
10663
10679
  export { isSignInWithEmailLink as $, ActionCodeOperation as A, EmailAuthProvider as B, FacebookAuthProvider as C, GithubAuthProvider as D, EmailAuthCredential as E, FactorId as F, GoogleAuthProvider as G, OAuthProvider as H, SAMLAuthProvider as I, signInAnonymously as J, signInWithCredential as K, linkWithCredential as L, reauthenticateWithCredential as M, signInWithCustomToken as N, OperationType as O, ProviderId as P, sendPasswordResetEmail as Q, confirmPasswordReset as R, SignInMethod as S, TwitterAuthProvider as T, applyActionCode as U, checkActionCode as V, verifyPasswordResetCode as W, createUserWithEmailAndPassword as X, signInWithEmailAndPassword as Y, sendSignInLinkToEmail as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, FetchProvider as a$, signInWithEmailLink as a0, fetchSignInMethodsForEmail as a1, sendEmailVerification as a2, verifyBeforeUpdateEmail as a3, ActionCodeURL as a4, parseActionCodeURL as a5, updateProfile as a6, updateEmail as a7, updatePassword as a8, getIdToken as a9, _assertInstanceOf as aA, _withDefaultResolver as aB, FederatedAuthProvider as aC, _fail as aD, _getProjectConfig as aE, _getCurrentUrl as aF, _emulatorUrl as aG, _isChromeIOS as aH, _isFirefox as aI, _isIOSStandalone as aJ, _getRedirectUrl as aK, _setWindowLocation as aL, _isMobileBrowser as aM, _isSafari as aN, _isIOS as aO, _getRedirectResult as aP, _overrideRedirectResult as aQ, AuthEventManager as aR, debugFail as aS, finalizeEnrollPhoneMfa as aT, finalizeEnrollTotpMfa as aU, startEnrollTotpMfa as aV, _persistenceKeyName as aW, UserImpl as aX, _getInstance as aY, AuthImpl as aZ, _getClientVersion as a_, getIdTokenResult as aa, unlink as ab, getAdditionalUserInfo as ac, reload as ad, getMultiFactorResolver as ae, multiFactor as af, _performApiRequest as ag, _addTidIfNecessary as ah, _assert as ai, Delay as aj, _window as ak, isV2 as al, _createError as am, _loadJS as an, _generateCallbackName as ao, getRecaptchaParams as ap, _isHttpOrHttps as aq, _isWorker as ar, _castAuth as as, _assertLinkedStatus as at, sendPhoneVerificationCode as au, startEnrollPhoneMfa as av, _link$1 as aw, debugAssert as ax, _generateEventId as ay, AbstractPopupRedirectOperation as az, _linkWithRedirect as b, SAMLAuthCredential as b0, signInWithRedirect as b1, linkWithRedirect as b2, reauthenticateWithRedirect as b3, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, deleteUser as n, onIdTokenChanged as o, debugErrorMap as p, prodErrorMap as q, registerAuth as r, setPersistence as s, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as t, useDeviceLanguage as u, connectAuthEmulator as v, AuthCredential as w, OAuthCredential as x, PhoneAuthCredential as y, inMemoryPersistence as z };
10664
- //# sourceMappingURL=popup_redirect-2dcc9534.js.map
10680
+ //# sourceMappingURL=popup_redirect-a50cd6b4.js.map