@firebase/auth 0.19.3 → 0.19.4-2021117224551
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.
- package/CHANGELOG.md +6 -0
- package/dist/auth-public.d.ts +1 -2
- package/dist/auth.d.ts +1 -2
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +9 -3
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/popup_redirect-238a0c49.js +9818 -0
- package/dist/cordova/popup_redirect-238a0c49.js.map +1 -0
- package/dist/cordova/{popup_redirect-1cde31c6.js → popup_redirect-abb8b03d.js} +14 -8
- package/dist/cordova/popup_redirect-abb8b03d.js.map +1 -0
- package/dist/cordova/src/model/public_types.d.ts +1 -2
- package/dist/esm2017/{index-8593558d.js → index-322e428b.js} +12 -3
- package/dist/esm2017/index-322e428b.js.map +1 -0
- package/dist/esm2017/index-b132db7f.js +9324 -0
- package/dist/esm2017/index-b132db7f.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/model/public_types.d.ts +1 -2
- package/dist/esm5/index-52123638.js +11053 -0
- package/dist/esm5/index-52123638.js.map +1 -0
- package/dist/esm5/{index-4f7e1a18.js → index-7fbc9c07.js} +21 -9
- package/dist/esm5/index-7fbc9c07.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/model/public_types.d.ts +1 -2
- package/dist/index.webworker.esm5.js +14 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index-547f3753.js +7210 -0
- package/dist/node/index-547f3753.js.map +1 -0
- package/dist/node/{index-057dcc31.js → index-55f24e76.js} +14 -8
- package/dist/node/index-55f24e76.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/model/public_types.d.ts +1 -2
- package/dist/node-esm/index-7d6d616c.js +6035 -0
- package/dist/node-esm/index-7d6d616c.js.map +1 -0
- package/dist/node-esm/{index-c327074d.js → index-8d4b7ac8.js} +6 -2
- package/dist/node-esm/index-8d4b7ac8.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/model/public_types.d.ts +1 -2
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +8 -2
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-4c7624c1.js → phone-48b37abd.js} +14 -8
- package/dist/rn/phone-48b37abd.js.map +1 -0
- package/dist/rn/phone-f0c6106b.js +8287 -0
- package/dist/rn/phone-f0c6106b.js.map +1 -0
- package/dist/rn/src/model/public_types.d.ts +1 -2
- package/dist/src/model/public_types.d.ts +1 -2
- package/package.json +4 -3
- package/dist/cordova/popup_redirect-1cde31c6.js.map +0 -1
- package/dist/esm2017/index-8593558d.js.map +0 -1
- package/dist/esm5/index-4f7e1a18.js.map +0 -1
- package/dist/node/index-057dcc31.js.map +0 -1
- package/dist/node-esm/index-c327074d.js.map +0 -1
- package/dist/rn/phone-4c7624c1.js.map +0 -1
|
@@ -3335,13 +3335,19 @@ var AuthImpl = /** @class */ (function () {
|
|
|
3335
3335
|
if (this._deleted) {
|
|
3336
3336
|
return [2 /*return*/];
|
|
3337
3337
|
}
|
|
3338
|
-
if (!((_b = this._popupRedirectResolver) === null || _b === void 0 ? void 0 : _b._shouldInitProactively)) return [3 /*break*/,
|
|
3339
|
-
|
|
3338
|
+
if (!((_b = this._popupRedirectResolver) === null || _b === void 0 ? void 0 : _b._shouldInitProactively)) return [3 /*break*/, 5];
|
|
3339
|
+
_d.label = 2;
|
|
3340
3340
|
case 2:
|
|
3341
|
+
_d.trys.push([2, 4, , 5]);
|
|
3342
|
+
return [4 /*yield*/, this._popupRedirectResolver._initialize(this)];
|
|
3343
|
+
case 3:
|
|
3341
3344
|
_d.sent();
|
|
3342
|
-
|
|
3343
|
-
case 3: return [4 /*yield*/, this.initializeCurrentUser(popupRedirectResolver)];
|
|
3345
|
+
return [3 /*break*/, 5];
|
|
3344
3346
|
case 4:
|
|
3347
|
+
_d.sent();
|
|
3348
|
+
return [3 /*break*/, 5];
|
|
3349
|
+
case 5: return [4 /*yield*/, this.initializeCurrentUser(popupRedirectResolver)];
|
|
3350
|
+
case 6:
|
|
3345
3351
|
_d.sent();
|
|
3346
3352
|
this.lastNotifiedUid = ((_c = this.currentUser) === null || _c === void 0 ? void 0 : _c.uid) || null;
|
|
3347
3353
|
if (this._deleted) {
|
|
@@ -3482,7 +3488,7 @@ var AuthImpl = /** @class */ (function () {
|
|
|
3482
3488
|
};
|
|
3483
3489
|
AuthImpl.prototype.reloadAndSetCurrentUserOrClear = function (user) {
|
|
3484
3490
|
return __awaiter(this, void 0, void 0, function () {
|
|
3485
|
-
var
|
|
3491
|
+
var e_3;
|
|
3486
3492
|
return __generator(this, function (_a) {
|
|
3487
3493
|
switch (_a.label) {
|
|
3488
3494
|
case 0:
|
|
@@ -3492,8 +3498,8 @@ var AuthImpl = /** @class */ (function () {
|
|
|
3492
3498
|
_a.sent();
|
|
3493
3499
|
return [3 /*break*/, 3];
|
|
3494
3500
|
case 2:
|
|
3495
|
-
|
|
3496
|
-
if (
|
|
3501
|
+
e_3 = _a.sent();
|
|
3502
|
+
if (e_3.code !== "auth/" + "network-request-failed" /* NETWORK_REQUEST_FAILED */) {
|
|
3497
3503
|
// Something's wrong with the user's token. Log them out and remove
|
|
3498
3504
|
// them from storage
|
|
3499
3505
|
return [2 /*return*/, this.directlySetCurrentUser(null)];
|
|
@@ -9809,4 +9815,4 @@ function generateNoEvent() {
|
|
|
9809
9815
|
}
|
|
9810
9816
|
|
|
9811
9817
|
export { fetchSignInMethodsForEmail as $, ActionCodeOperation as A, GithubAuthProvider as B, OAuthProvider as C, SAMLAuthProvider as D, EmailAuthCredential as E, FactorId as F, GoogleAuthProvider as G, signInAnonymously as H, signInWithCredential as I, linkWithCredential as J, reauthenticateWithCredential as K, signInWithCustomToken as L, sendPasswordResetEmail as M, confirmPasswordReset as N, OperationType as O, ProviderId as P, applyActionCode as Q, checkActionCode as R, SignInMethod as S, TwitterAuthProvider as T, verifyPasswordResetCode as U, createUserWithEmailAndPassword as V, signInWithEmailAndPassword as W, sendSignInLinkToEmail as X, isSignInWithEmailLink as Y, signInWithEmailLink as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, sendEmailVerification as a0, verifyBeforeUpdateEmail as a1, ActionCodeURL as a2, parseActionCodeURL as a3, updateProfile as a4, updateEmail as a5, updatePassword as a6, getIdToken as a7, getIdTokenResult as a8, unlink as a9, _emulatorUrl as aA, _isChromeIOS as aB, _isFirefox as aC, _isIOSStandalone as aD, _isMobileBrowser as aE, _isSafari as aF, _isIOS as aG, _getRedirectResult as aH, _getRedirectUrl as aI, _setWindowLocation as aJ, AuthEventManager as aK, debugFail as aL, finalizeEnrollPhoneMfa as aM, _persistenceKeyName as aN, UserImpl as aO, _getInstance as aP, AuthImpl as aQ, _getClientVersion as aR, FetchProvider as aS, SAMLAuthCredential as aT, signInWithRedirect as aU, linkWithRedirect as aV, reauthenticateWithRedirect as aW, getAdditionalUserInfo as aa, reload as ab, getMultiFactorResolver as ac, multiFactor as ad, _performApiRequest as ae, _addTidIfNecessary as af, _createError as ag, _assert as ah, Delay as ai, _window as aj, _isHttpOrHttps as ak, _isWorker as al, _castAuth as am, sendPhoneVerificationCode as an, startEnrollPhoneMfa as ao, _assertLinkedStatus as ap, _link$1 as aq, debugAssert as ar, _generateEventId as as, AbstractPopupRedirectOperation as at, _assertInstanceOf as au, _withDefaultResolver as av, FederatedAuthProvider as aw, _fail as ax, _getProjectConfig as ay, _getCurrentUrl as az, _linkWithRedirect as b, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, onAuthStateChanged as h, initializeAuth as i, updateCurrentUser as j, signOut as k, deleteUser as l, debugErrorMap as m, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as n, onIdTokenChanged as o, prodErrorMap as p, connectAuthEmulator as q, registerAuth as r, setPersistence as s, AuthCredential as t, useDeviceLanguage as u, OAuthCredential as v, PhoneAuthCredential as w, inMemoryPersistence as x, EmailAuthProvider as y, FacebookAuthProvider as z };
|
|
9812
|
-
//# sourceMappingURL=popup_redirect-
|
|
9818
|
+
//# sourceMappingURL=popup_redirect-abb8b03d.js.map
|