@firebase/auth 0.19.12 → 0.20.0
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 +13 -0
- package/dist/auth-public.d.ts +30 -0
- package/dist/auth.d.ts +38 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal/index.d.ts +1 -0
- package/dist/cordova/internal.js +3 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-fd81f644.js → popup_redirect-1228b67a.js} +203 -43
- package/dist/cordova/popup_redirect-1228b67a.js.map +1 -0
- package/dist/cordova/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/cordova/src/core/auth/middleware.d.ts +25 -0
- package/dist/cordova/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/cordova/src/core/errors.d.ts +7 -1
- package/dist/cordova/src/core/index.d.ts +11 -0
- package/dist/cordova/src/core/strategies/redirect.d.ts +1 -0
- package/dist/cordova/src/model/popup_redirect.d.ts +2 -0
- package/dist/cordova/src/model/public_types.d.ts +10 -0
- package/dist/cordova/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/cordova/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/esm2017/{index-7078a255.js → index-815f1b87.js} +143 -18
- package/dist/esm2017/index-815f1b87.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal/index.d.ts +1 -0
- package/dist/esm2017/internal.js +3 -2
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/esm2017/src/core/auth/middleware.d.ts +25 -0
- package/dist/esm2017/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/esm2017/src/core/errors.d.ts +7 -1
- package/dist/esm2017/src/core/index.d.ts +11 -0
- package/dist/esm2017/src/core/strategies/redirect.d.ts +1 -0
- package/dist/esm2017/src/model/popup_redirect.d.ts +2 -0
- package/dist/esm2017/src/model/public_types.d.ts +10 -0
- package/dist/esm2017/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/esm2017/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/esm5/{index-7a476dcd.js → index-dc27d95e.js} +203 -43
- package/dist/esm5/index-dc27d95e.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal/index.d.ts +1 -0
- package/dist/esm5/internal.js +3 -2
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/esm5/src/core/auth/middleware.d.ts +25 -0
- package/dist/esm5/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/esm5/src/core/errors.d.ts +7 -1
- package/dist/esm5/src/core/index.d.ts +11 -0
- package/dist/esm5/src/core/strategies/redirect.d.ts +1 -0
- package/dist/esm5/src/model/popup_redirect.d.ts +2 -0
- package/dist/esm5/src/model/public_types.d.ts +10 -0
- package/dist/esm5/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/esm5/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/index.webworker.esm5.js +198 -42
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/node/{index-eabd3e6c.js → index-ec34877a.js} +199 -42
- package/dist/node/index-ec34877a.js.map +1 -0
- package/dist/node/index.js +2 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/internal/index.d.ts +1 -0
- package/dist/node/internal.js +7 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/node/src/core/auth/middleware.d.ts +25 -0
- package/dist/node/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/node/src/core/errors.d.ts +7 -1
- package/dist/node/src/core/index.d.ts +11 -0
- package/dist/node/src/core/strategies/redirect.d.ts +1 -0
- package/dist/node/src/model/popup_redirect.d.ts +2 -0
- package/dist/node/src/model/public_types.d.ts +10 -0
- package/dist/node/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/node/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/node-esm/{index-d709908a.js → index-c85cf380.js} +139 -18
- package/dist/node-esm/index-c85cf380.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal/index.d.ts +1 -0
- package/dist/node-esm/internal.js +7 -3
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/node-esm/src/core/auth/middleware.d.ts +25 -0
- package/dist/node-esm/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/node-esm/src/core/errors.d.ts +7 -1
- package/dist/node-esm/src/core/index.d.ts +11 -0
- package/dist/node-esm/src/core/strategies/redirect.d.ts +1 -0
- package/dist/node-esm/src/model/popup_redirect.d.ts +2 -0
- package/dist/node-esm/src/model/public_types.d.ts +10 -0
- package/dist/node-esm/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/node-esm/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/rn/index.js +2 -1
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal/index.d.ts +1 -0
- package/dist/rn/internal.js +8 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-eec7f987.js → phone-ae029e3c.js} +199 -42
- package/dist/rn/phone-ae029e3c.js.map +1 -0
- package/dist/rn/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/rn/src/core/auth/middleware.d.ts +25 -0
- package/dist/rn/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/rn/src/core/errors.d.ts +7 -1
- package/dist/rn/src/core/index.d.ts +11 -0
- package/dist/rn/src/core/strategies/redirect.d.ts +1 -0
- package/dist/rn/src/model/popup_redirect.d.ts +2 -0
- package/dist/rn/src/model/public_types.d.ts +10 -0
- package/dist/rn/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/rn/test/integration/webdriver/util/functions.d.ts +4 -0
- package/dist/src/core/auth/auth_impl.d.ts +3 -1
- package/dist/src/core/auth/middleware.d.ts +25 -0
- package/dist/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/src/core/errors.d.ts +7 -1
- package/dist/src/core/index.d.ts +11 -0
- package/dist/src/core/strategies/redirect.d.ts +1 -0
- package/dist/src/model/popup_redirect.d.ts +2 -0
- package/dist/src/model/public_types.d.ts +10 -0
- package/dist/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/test/integration/webdriver/util/functions.d.ts +4 -0
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-fd81f644.js.map +0 -1
- package/dist/esm2017/index-7078a255.js.map +0 -1
- package/dist/esm5/index-7a476dcd.js.map +0 -1
- package/dist/node/index-eabd3e6c.js.map +0 -1
- package/dist/node-esm/index-d709908a.js.map +0 -1
- package/dist/rn/phone-eec7f987.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @firebase/auth
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1ac3c9d41`](https://github.com/firebase/firebase-js-sdk/commit/1ac3c9d41e8f69a94c64c6e0caf5f1a159b7dc3c) [#6151](https://github.com/firebase/firebase-js-sdk/pull/6151) - Add `beforeAuthStateChanged()` middleware function which allows the user to provide callbacks that are run before an auth state change
|
|
8
|
+
sets a new user.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [[`9c5c9c36d`](https://github.com/firebase/firebase-js-sdk/commit/9c5c9c36da80b98b73cfd60ef2e2965087e9f801)]:
|
|
13
|
+
- @firebase/util@1.6.0
|
|
14
|
+
- @firebase/component@0.5.14
|
|
15
|
+
|
|
3
16
|
## 0.19.12
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/auth-public.d.ts
CHANGED
|
@@ -362,6 +362,16 @@ export declare interface Auth {
|
|
|
362
362
|
* @param completed - callback triggered when observer is removed.
|
|
363
363
|
*/
|
|
364
364
|
onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
365
|
+
/**
|
|
366
|
+
* Adds a blocking callback that runs before an auth state change
|
|
367
|
+
* sets a new user.
|
|
368
|
+
*
|
|
369
|
+
* @param callback - callback triggered before new user value is set.
|
|
370
|
+
* If this throws, it blocks the user from being set.
|
|
371
|
+
* @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
|
|
372
|
+
* callback throws, allowing you to undo any side effects.
|
|
373
|
+
*/
|
|
374
|
+
beforeAuthStateChanged(callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
|
|
365
375
|
/**
|
|
366
376
|
* Adds an observer for changes to the signed-in user's ID token.
|
|
367
377
|
*
|
|
@@ -684,6 +694,18 @@ declare abstract class BaseOAuthProvider extends FederatedAuthProvider implement
|
|
|
684
694
|
getScopes(): string[];
|
|
685
695
|
}
|
|
686
696
|
|
|
697
|
+
/**
|
|
698
|
+
* Adds a blocking callback that runs before an auth state change
|
|
699
|
+
* sets a new user.
|
|
700
|
+
*
|
|
701
|
+
* @param auth - The {@link Auth} instance.
|
|
702
|
+
* @param callback - callback triggered before new user value is set.
|
|
703
|
+
* If this throws, it blocks the user from being set.
|
|
704
|
+
* @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
|
|
705
|
+
* callback throws, allowing you to undo any side effects.
|
|
706
|
+
*/
|
|
707
|
+
export declare function beforeAuthStateChanged(auth: Auth, callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
|
|
708
|
+
|
|
687
709
|
/**
|
|
688
710
|
* An implementation of {@link Persistence} of type `LOCAL` using `localStorage`
|
|
689
711
|
* for the underlying storage.
|
|
@@ -3111,6 +3133,10 @@ export declare function signOut(auth: Auth): Promise<void>;
|
|
|
3111
3133
|
|
|
3112
3134
|
/* Excluded from this release type: StsTokenManager */
|
|
3113
3135
|
|
|
3136
|
+
declare interface TaggedWithTokenResponse {
|
|
3137
|
+
_tokenResponse?: PhoneOrOauthTokenResponse;
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3114
3140
|
/**
|
|
3115
3141
|
* Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.
|
|
3116
3142
|
*
|
|
@@ -3399,6 +3425,10 @@ export declare interface UserCredential {
|
|
|
3399
3425
|
operationType: typeof OperationType[keyof typeof OperationType];
|
|
3400
3426
|
}
|
|
3401
3427
|
|
|
3428
|
+
declare interface UserCredentialInternal extends UserCredential, TaggedWithTokenResponse {
|
|
3429
|
+
user: UserInternal;
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3402
3432
|
/**
|
|
3403
3433
|
* User profile information, visible only to the Firebase project's apps.
|
|
3404
3434
|
*
|
package/dist/auth.d.ts
CHANGED
|
@@ -371,6 +371,16 @@ export declare interface Auth {
|
|
|
371
371
|
* @param completed - callback triggered when observer is removed.
|
|
372
372
|
*/
|
|
373
373
|
onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
374
|
+
/**
|
|
375
|
+
* Adds a blocking callback that runs before an auth state change
|
|
376
|
+
* sets a new user.
|
|
377
|
+
*
|
|
378
|
+
* @param callback - callback triggered before new user value is set.
|
|
379
|
+
* If this throws, it blocks the user from being set.
|
|
380
|
+
* @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
|
|
381
|
+
* callback throws, allowing you to undo any side effects.
|
|
382
|
+
*/
|
|
383
|
+
beforeAuthStateChanged(callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
|
|
374
384
|
/**
|
|
375
385
|
* Adds an observer for changes to the signed-in user's ID token.
|
|
376
386
|
*
|
|
@@ -547,6 +557,7 @@ declare const enum AuthErrorCode {
|
|
|
547
557
|
INVALID_SENDER = "invalid-sender",
|
|
548
558
|
INVALID_SESSION_INFO = "invalid-verification-id",
|
|
549
559
|
INVALID_TENANT_ID = "invalid-tenant-id",
|
|
560
|
+
LOGIN_BLOCKED = "login-blocked",
|
|
550
561
|
MFA_INFO_NOT_FOUND = "multi-factor-info-not-found",
|
|
551
562
|
MFA_REQUIRED = "multi-factor-auth-required",
|
|
552
563
|
MISSING_ANDROID_PACKAGE_NAME = "missing-android-pkg-name",
|
|
@@ -741,6 +752,10 @@ declare interface AuthErrorParams extends GenericAuthErrorParams {
|
|
|
741
752
|
[AuthErrorCode.INTERNAL_ERROR]: {
|
|
742
753
|
appName?: AppName;
|
|
743
754
|
};
|
|
755
|
+
[AuthErrorCode.LOGIN_BLOCKED]: {
|
|
756
|
+
appName?: AppName;
|
|
757
|
+
originalMessage?: string;
|
|
758
|
+
};
|
|
744
759
|
[AuthErrorCode.OPERATION_NOT_SUPPORTED]: {
|
|
745
760
|
appName?: AppName;
|
|
746
761
|
};
|
|
@@ -907,6 +922,18 @@ declare abstract class BaseOAuthProvider extends FederatedAuthProvider implement
|
|
|
907
922
|
getScopes(): string[];
|
|
908
923
|
}
|
|
909
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Adds a blocking callback that runs before an auth state change
|
|
927
|
+
* sets a new user.
|
|
928
|
+
*
|
|
929
|
+
* @param auth - The {@link Auth} instance.
|
|
930
|
+
* @param callback - callback triggered before new user value is set.
|
|
931
|
+
* If this throws, it blocks the user from being set.
|
|
932
|
+
* @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
|
|
933
|
+
* callback throws, allowing you to undo any side effects.
|
|
934
|
+
*/
|
|
935
|
+
export declare function beforeAuthStateChanged(auth: Auth, callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
|
|
936
|
+
|
|
910
937
|
/**
|
|
911
938
|
* An implementation of {@link Persistence} of type `LOCAL` using `localStorage`
|
|
912
939
|
* for the underlying storage.
|
|
@@ -1459,9 +1486,10 @@ declare interface FinalizeMfaResponse {
|
|
|
1459
1486
|
*/
|
|
1460
1487
|
declare type GenericAuthErrorParams = {
|
|
1461
1488
|
[key in Exclude<AuthErrorCode, AuthErrorCode.ARGUMENT_ERROR | AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH | AuthErrorCode.INTERNAL_ERROR | AuthErrorCode.MFA_REQUIRED | AuthErrorCode.NO_AUTH_EVENT | AuthErrorCode.OPERATION_NOT_SUPPORTED>]: {
|
|
1462
|
-
appName
|
|
1489
|
+
appName?: AppName;
|
|
1463
1490
|
email?: string;
|
|
1464
1491
|
phoneNumber?: string;
|
|
1492
|
+
message?: string;
|
|
1465
1493
|
};
|
|
1466
1494
|
};
|
|
1467
1495
|
|
|
@@ -2779,6 +2807,7 @@ declare interface PopupRedirectResolverInternal extends PopupRedirectResolver {
|
|
|
2779
2807
|
_redirectPersistence: Persistence;
|
|
2780
2808
|
_originValidation(auth: Auth): Promise<void>;
|
|
2781
2809
|
_completeRedirectFn: (auth: Auth, resolver: PopupRedirectResolver, bypassAuthState: boolean) => Promise<UserCredential | null>;
|
|
2810
|
+
_overrideRedirectResult: (auth: AuthInternal, resultGetter: () => Promise<UserCredentialInternal | null>) => void;
|
|
2782
2811
|
}
|
|
2783
2812
|
|
|
2784
2813
|
/**
|
|
@@ -3549,6 +3578,10 @@ declare class StsTokenManager {
|
|
|
3549
3578
|
_performRefresh(): never;
|
|
3550
3579
|
}
|
|
3551
3580
|
|
|
3581
|
+
declare interface TaggedWithTokenResponse {
|
|
3582
|
+
_tokenResponse?: PhoneOrOauthTokenResponse;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3552
3585
|
/**
|
|
3553
3586
|
* Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.
|
|
3554
3587
|
*
|
|
@@ -3837,6 +3870,10 @@ export declare interface UserCredential {
|
|
|
3837
3870
|
operationType: typeof OperationType[keyof typeof OperationType];
|
|
3838
3871
|
}
|
|
3839
3872
|
|
|
3873
|
+
declare interface UserCredentialInternal extends UserCredential, TaggedWithTokenResponse {
|
|
3874
|
+
user: UserInternal;
|
|
3875
|
+
}
|
|
3876
|
+
|
|
3840
3877
|
/**
|
|
3841
3878
|
* User profile information, visible only to the Firebase project's apps.
|
|
3842
3879
|
*
|
package/dist/cordova/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getApp, _getProvider } from '@firebase/app';
|
|
2
|
-
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-
|
|
3
|
-
export { A as ActionCodeOperation,
|
|
2
|
+
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-1228b67a.js';
|
|
3
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-1228b67a.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import '@firebase/util';
|
|
6
6
|
import '@firebase/component';
|
|
@@ -35,6 +35,7 @@ export { TaggedWithTokenResponse } from '../src/model/id_token';
|
|
|
35
35
|
export { _fail, _assert } from '../src/core/util/assert';
|
|
36
36
|
export { AuthPopup } from '../src/platform_browser/util/popup';
|
|
37
37
|
export { _getRedirectResult } from '../src/platform_browser/strategies/redirect';
|
|
38
|
+
export { _overrideRedirectResult } from '../src/core/strategies/redirect';
|
|
38
39
|
export { cordovaPopupRedirectResolver } from '../src/platform_cordova/popup_redirect/popup_redirect';
|
|
39
40
|
export { FetchProvider } from '../src/core/util/fetch_provider';
|
|
40
41
|
export { SAMLAuthCredential } from '../src/core/credentials/saml';
|
package/dist/cordova/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionCodeOperation,
|
|
1
|
+
import { af as _performApiRequest, ag as _addTidIfNecessary, ah as _createError, ai as _assert, aj as Delay, ak as _window, al as _isHttpOrHttps, am as _isWorker, an as _castAuth, J as signInWithCredential, ao as sendPhoneVerificationCode, ap as startEnrollPhoneMfa, K as linkWithCredential, aq as _assertLinkedStatus, L as reauthenticateWithCredential, ar as _link, x as PhoneAuthCredential, as as debugAssert, at as _generateEventId, au as AbstractPopupRedirectOperation, av as _assertInstanceOf, aw as _withDefaultResolver, ax as FederatedAuthProvider, ay as _fail, az as _getProjectConfig, aA as _getCurrentUrl, aB as _emulatorUrl, aC as _isChromeIOS, aD as _isFirefox, aE as _isIOSStandalone, aF as _isMobileBrowser, aG as _isSafari, aH as _isIOS, f as browserSessionPersistence, aI as _getRedirectResult, aJ as _overrideRedirectResult, aK as _getRedirectUrl, aL as _setWindowLocation, aM as AuthEventManager, aN as debugFail, aO as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-1228b67a.js';
|
|
2
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, aS as AuthImpl, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, aU as FetchProvider, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, aV as SAMLAuthCredential, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aQ as UserImpl, ai as _assert, an as _castAuth, ay as _fail, at as _generateEventId, aT as _getClientVersion, aR as _getInstance, aI as _getRedirectResult, aJ as _overrideRedirectResult, aP as _persistenceKeyName, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, aX as linkWithRedirect, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, aY as reauthenticateWithRedirect, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, aW as signInWithRedirect, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-1228b67a.js';
|
|
3
3
|
import { __awaiter, __generator, __assign, __extends, __spreadArray } from 'tslib';
|
|
4
4
|
import { querystring, getModularInstance, getUA } from '@firebase/util';
|
|
5
5
|
import { SDK_VERSION, getApp, _getProvider } from '@firebase/app';
|
|
@@ -1666,6 +1666,7 @@ var BrowserPopupRedirectResolver = /** @class */ (function () {
|
|
|
1666
1666
|
this.originValidationPromises = {};
|
|
1667
1667
|
this._redirectPersistence = browserSessionPersistence;
|
|
1668
1668
|
this._completeRedirectFn = _getRedirectResult;
|
|
1669
|
+
this._overrideRedirectResult = _overrideRedirectResult;
|
|
1669
1670
|
}
|
|
1670
1671
|
// Wrapping in async even though we don't await anywhere in order
|
|
1671
1672
|
// to make sure errors are raised as promise rejections
|