@firebase/auth 0.23.0 → 0.23.1-canary.5a2ceb07b
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 +6 -6
- package/dist/auth.d.ts +6 -6
- package/dist/browser-cjs/{index-8174c221.js → index-8d45fc10.js} +15 -17
- package/dist/browser-cjs/index-8d45fc10.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/model/public_types.d.ts +9 -6
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +6 -4
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-fedd78b2.js → popup_redirect-83844584.js} +11 -15
- package/dist/cordova/popup_redirect-83844584.js.map +1 -0
- package/dist/cordova/src/model/public_types.d.ts +9 -6
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/cordova/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/esm2017/{index-16e22603.js → index-e9b0713f.js} +15 -17
- package/dist/esm2017/index-e9b0713f.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 +9 -6
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm2017/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/esm5/{index-932ba0f0.js → index-7449f217.js} +15 -17
- package/dist/esm5/index-7449f217.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 +9 -6
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm5/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/index.webworker.esm5.js +10 -14
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/model/public_types.d.ts +9 -6
- package/dist/node/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/node/{totp-919eeeb3.js → totp-d0eab181.js} +11 -15
- package/dist/node/totp-d0eab181.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 +9 -6
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/node-esm/{totp-abcc15a3.js → totp-7c3eacfe.js} +11 -15
- package/dist/node-esm/totp-7c3eacfe.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +5 -3
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-1dccf30c.js → phone-b00876b2.js} +11 -15
- package/dist/rn/phone-b00876b2.js.map +1 -0
- package/dist/rn/src/model/public_types.d.ts +9 -6
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/rn/src/platform_browser/strategies/popup.d.ts +1 -1
- package/dist/src/model/public_types.d.ts +9 -6
- package/dist/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/src/platform_browser/strategies/popup.d.ts +1 -1
- package/package.json +6 -6
- package/dist/browser-cjs/index-8174c221.js.map +0 -1
- package/dist/cordova/popup_redirect-fedd78b2.js.map +0 -1
- package/dist/esm2017/index-16e22603.js.map +0 -1
- package/dist/esm5/index-932ba0f0.js.map +0 -1
- package/dist/node/totp-919eeeb3.js.map +0 -1
- package/dist/node-esm/totp-abcc15a3.js.map +0 -1
- package/dist/rn/phone-1dccf30c.js.map +0 -1
package/dist/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-e9b0713f.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { as as debugAssert, at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as _getProjectConfig, ay as _isIOS7Or8, az as _createError, aA as _assert, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, a as browserSessionPersistence, aE as _getRedirectResult, aF as _overrideRedirectResult, aG as _clearRedirectOutcomes, aH as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, aA as _assert, aH as _castAuth, av as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aE as _getRedirectResult, aF as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { as as debugAssert, at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as _getProjectConfig, ay as _isIOS7Or8, az as _createError, aA as _assert, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, a as browserSessionPersistence, aE as _getRedirectResult, aF as _overrideRedirectResult, aG as _clearRedirectOutcomes, aH as _castAuth } from './index-e9b0713f.js';
|
|
2
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, aA as _assert, aH as _castAuth, av as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aE as _getRedirectResult, aF as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-e9b0713f.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -278,7 +278,7 @@ export interface Auth {
|
|
|
278
278
|
*/
|
|
279
279
|
useDeviceLanguage(): void;
|
|
280
280
|
/**
|
|
281
|
-
* Signs out the current user.
|
|
281
|
+
* Signs out the current user. This does not automatically revoke the user's ID token.
|
|
282
282
|
*/
|
|
283
283
|
signOut(): Promise<void>;
|
|
284
284
|
}
|
|
@@ -378,7 +378,7 @@ export interface ActionCodeInfo {
|
|
|
378
378
|
/**
|
|
379
379
|
* The type of operation that generated the action code.
|
|
380
380
|
*/
|
|
381
|
-
operation: typeof ActionCodeOperationMap[keyof typeof ActionCodeOperationMap];
|
|
381
|
+
operation: (typeof ActionCodeOperationMap)[keyof typeof ActionCodeOperationMap];
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* An enumeration of the possible email action types.
|
|
@@ -498,6 +498,9 @@ export interface AuthProvider {
|
|
|
498
498
|
/**
|
|
499
499
|
* An enum of factors that may be used for multifactor authentication.
|
|
500
500
|
*
|
|
501
|
+
* Internally we use an enum type for FactorId, ActionCodeOperation, but there is a copy in https://github.com/firebase/firebase-js-sdk/blob/48a2096aec53a7eaa9ffcc2625016ecb9f90d113/packages/auth/src/model/enum_maps.ts#L23 that uses maps.
|
|
502
|
+
* const enums are better for tree-shaking, however can cause runtime errors if exposed in public APIs, example - https://github.com/microsoft/rushstack/issues/3058
|
|
503
|
+
* So, we expose enum maps publicly, but use const enums internally to get some tree-shaking benefit.
|
|
501
504
|
* @internal
|
|
502
505
|
*/
|
|
503
506
|
export declare const enum FactorId {
|
|
@@ -544,7 +547,7 @@ export interface ConfirmationResult {
|
|
|
544
547
|
*/
|
|
545
548
|
export interface MultiFactorAssertion {
|
|
546
549
|
/** The identifier of the second factor. */
|
|
547
|
-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
|
|
550
|
+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
|
|
548
551
|
}
|
|
549
552
|
/**
|
|
550
553
|
* The error thrown when the user needs to provide a second factor to sign in successfully.
|
|
@@ -583,7 +586,7 @@ export interface MultiFactorError extends AuthError {
|
|
|
583
586
|
/**
|
|
584
587
|
* The type of operation (sign-in, linking, or re-authentication) that raised the error.
|
|
585
588
|
*/
|
|
586
|
-
readonly operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
|
|
589
|
+
readonly operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
|
|
587
590
|
};
|
|
588
591
|
}
|
|
589
592
|
/**
|
|
@@ -599,7 +602,7 @@ export interface MultiFactorInfo {
|
|
|
599
602
|
/** The enrollment date of the second factor formatted as a UTC string. */
|
|
600
603
|
readonly enrollmentTime: string;
|
|
601
604
|
/** The identifier of the second factor. */
|
|
602
|
-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
|
|
605
|
+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
|
|
603
606
|
}
|
|
604
607
|
/**
|
|
605
608
|
* The subclass of the {@link MultiFactorInfo} interface for phone number
|
|
@@ -987,7 +990,7 @@ export interface UserCredential {
|
|
|
987
990
|
/**
|
|
988
991
|
* The type of operation which was used to authenticate the user (such as sign-in or link).
|
|
989
992
|
*/
|
|
990
|
-
operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
|
|
993
|
+
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
|
|
991
994
|
}
|
|
992
995
|
/**
|
|
993
996
|
* User profile information, visible only to the Firebase project's apps.
|
|
@@ -18,6 +18,7 @@ import { RecaptchaActionName } from '../../api';
|
|
|
18
18
|
import { Auth } from '../../model/public_types';
|
|
19
19
|
import { AuthInternal } from '../../model/auth';
|
|
20
20
|
export declare const RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = "recaptcha-enterprise";
|
|
21
|
+
export declare const FAKE_TOKEN = "NO_RECAPTCHA";
|
|
21
22
|
export declare class RecaptchaEnterpriseVerifier {
|
|
22
23
|
/**
|
|
23
24
|
* Identifies the type of application verifier (e.g. "recaptcha-enterprise").
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { Auth, AuthProvider, PopupRedirectResolver, User, UserCredential } from '../../model/public_types';
|
|
18
18
|
import { Delay } from '../../core/util/delay';
|
|
19
19
|
export declare const enum _Timeout {
|
|
20
|
-
AUTH_EVENT =
|
|
20
|
+
AUTH_EVENT = 8000
|
|
21
21
|
}
|
|
22
22
|
export declare const _POLL_WINDOW_CLOSE_TIMEOUT: Delay;
|
|
23
23
|
/**
|
|
@@ -2565,6 +2565,7 @@ function _generateCallbackName(prefix) {
|
|
|
2565
2565
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2566
2566
|
var RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js?render=';
|
|
2567
2567
|
var RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = 'recaptcha-enterprise';
|
|
2568
|
+
var FAKE_TOKEN = 'NO_RECAPTCHA';
|
|
2568
2569
|
var RecaptchaEnterpriseVerifier = /** @class */ (function () {
|
|
2569
2570
|
/**
|
|
2570
2571
|
*
|
|
@@ -2634,19 +2635,14 @@ var RecaptchaEnterpriseVerifier = /** @class */ (function () {
|
|
|
2634
2635
|
var grecaptcha = window.grecaptcha;
|
|
2635
2636
|
if (isEnterprise(grecaptcha)) {
|
|
2636
2637
|
grecaptcha.enterprise.ready(function () {
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
catch (error) {
|
|
2648
|
-
reject(error);
|
|
2649
|
-
}
|
|
2638
|
+
grecaptcha.enterprise
|
|
2639
|
+
.execute(siteKey, { action: action })
|
|
2640
|
+
.then(function (token) {
|
|
2641
|
+
resolve(token);
|
|
2642
|
+
})
|
|
2643
|
+
.catch(function () {
|
|
2644
|
+
resolve(FAKE_TOKEN);
|
|
2645
|
+
});
|
|
2650
2646
|
});
|
|
2651
2647
|
}
|
|
2652
2648
|
else {
|
|
@@ -10294,11 +10290,13 @@ var PopupOperation = /** @class */ (function (_super) {
|
|
|
10294
10290
|
if ((_b = (_a = _this.authWindow) === null || _a === void 0 ? void 0 : _a.window) === null || _b === void 0 ? void 0 : _b.closed) {
|
|
10295
10291
|
// Make sure that there is sufficient time for whatever action to
|
|
10296
10292
|
// complete. The window could have closed but the sign in network
|
|
10297
|
-
// call could still be in flight.
|
|
10293
|
+
// call could still be in flight. This is specifically true for
|
|
10294
|
+
// Firefox or if the opener is in an iframe, in which case the oauth
|
|
10295
|
+
// helper closes the popup.
|
|
10298
10296
|
_this.pollId = window.setTimeout(function () {
|
|
10299
10297
|
_this.pollId = null;
|
|
10300
10298
|
_this.reject(_createError(_this.auth, "popup-closed-by-user" /* AuthErrorCode.POPUP_CLOSED_BY_USER */));
|
|
10301
|
-
},
|
|
10299
|
+
}, 8000 /* _Timeout.AUTH_EVENT */);
|
|
10302
10300
|
return;
|
|
10303
10301
|
}
|
|
10304
10302
|
_this.pollId = window.setTimeout(poll, _POLL_WINDOW_CLOSE_TIMEOUT.get());
|
|
@@ -11810,7 +11808,7 @@ function _isEmptyString(input) {
|
|
|
11810
11808
|
}
|
|
11811
11809
|
|
|
11812
11810
|
var name = "@firebase/auth";
|
|
11813
|
-
var version = "0.23.
|
|
11811
|
+
var version = "0.23.1-canary.5a2ceb07b";
|
|
11814
11812
|
|
|
11815
11813
|
/**
|
|
11816
11814
|
* @license
|
|
@@ -12067,4 +12065,4 @@ function getAuth(app) {
|
|
|
12067
12065
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
12068
12066
|
|
|
12069
12067
|
export { signInWithCredential as $, ActionCodeOperation as A, signOut as B, deleteUser as C, debugErrorMap as D, prodErrorMap as E, FactorId as F, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as G, initializeAuth as H, connectAuthEmulator as I, AuthCredential as J, EmailAuthCredential as K, OAuthCredential as L, PhoneAuthCredential as M, inMemoryPersistence as N, OperationType as O, PhoneAuthProvider as P, EmailAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, FacebookAuthProvider as U, GoogleAuthProvider as V, GithubAuthProvider as W, OAuthProvider as X, SAMLAuthProvider as Y, TwitterAuthProvider as Z, signInAnonymously as _, browserSessionPersistence as a, linkWithCredential as a0, reauthenticateWithCredential as a1, signInWithCustomToken as a2, sendPasswordResetEmail as a3, confirmPasswordReset as a4, applyActionCode as a5, checkActionCode as a6, verifyPasswordResetCode as a7, createUserWithEmailAndPassword as a8, signInWithEmailAndPassword as a9, _createError as aA, AuthEventManager as aB, _getInstance as aC, _persistenceKeyName as aD, _clearRedirectOutcomes as aE, _getRedirectResult as aF, _overrideRedirectResult as aG, _castAuth as aH, UserImpl as aI, AuthImpl as aJ, _getClientVersion as aK, _generateEventId as aL, AuthPopup as aM, FetchProvider as aN, SAMLAuthCredential as aO, sendSignInLinkToEmail as aa, isSignInWithEmailLink as ab, signInWithEmailLink as ac, fetchSignInMethodsForEmail as ad, sendEmailVerification as ae, verifyBeforeUpdateEmail as af, ActionCodeURL as ag, parseActionCodeURL as ah, updateProfile as ai, updateEmail as aj, updatePassword as ak, getIdToken as al, getIdTokenResult as am, unlink as an, getAdditionalUserInfo as ao, reload as ap, getMultiFactorResolver as aq, multiFactor as ar, _isIOS as as, _isAndroid as at, _fail as au, _getRedirectUrl as av, debugAssert as aw, _getProjectConfig as ax, _isIOS7Or8 as ay, _assert 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, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, onIdTokenChanged as v, beforeAuthStateChanged as w, onAuthStateChanged as x, useDeviceLanguage as y, updateCurrentUser as z };
|
|
12070
|
-
//# sourceMappingURL=index-
|
|
12068
|
+
//# sourceMappingURL=index-7449f217.js.map
|