@firebase/auth 1.7.5 → 1.7.6-canary.b4c5ef3c3
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/README.md +1 -1
- package/dist/auth-public.d.ts +4 -4
- package/dist/auth.d.ts +4 -4
- package/dist/browser-cjs/{index-22b094f0.js → index-5eba259a.js} +12 -12
- package/dist/browser-cjs/index-5eba259a.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +5 -5
- package/dist/browser-cjs/internal.js.map +1 -1
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/browser-cjs/src/core/providers/github.d.ts +4 -4
- package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/cordova/auth-cordova-public.d.ts +4 -4
- package/dist/cordova/auth-cordova.d.ts +4 -4
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +4 -4
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-31aa6bae.js → popup_redirect-90f3d2aa.js} +13 -13
- package/dist/cordova/popup_redirect-90f3d2aa.js.map +1 -0
- package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/cordova/src/core/providers/github.d.ts +4 -4
- package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/esm2017/{index-54738136.js → index-3352d1c2.js} +12 -12
- package/dist/esm2017/index-3352d1c2.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +6 -6
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm2017/src/core/providers/github.d.ts +4 -4
- package/dist/esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/esm5/{index-5a49f2c0.js → index-46bd91f2.js} +11 -11
- package/dist/esm5/index-46bd91f2.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +6 -6
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm5/src/core/providers/github.d.ts +4 -4
- package/dist/esm5/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/esm5/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/esm5/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/esm5/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/index.webworker.esm5.js +8 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +5 -5
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node/src/core/providers/github.d.ts +4 -4
- package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/node/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/node/{totp-721eac4b.js → totp-c3b735cc.js} +8 -8
- package/dist/node/totp-c3b735cc.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +7 -7
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node-esm/src/core/providers/github.d.ts +4 -4
- package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/node-esm/{totp-3675c216.js → totp-36e8b0d9.js} +8 -8
- package/dist/node-esm/totp-36e8b0d9.js.map +1 -0
- package/dist/rn/{index-d345c8d7.js → index-6d318fe3.js} +9 -9
- package/dist/rn/index-6d318fe3.js.map +1 -0
- package/dist/rn/index.js +2 -2
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +7 -7
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/rn/src/core/providers/github.d.ts +4 -4
- package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/src/core/providers/github.d.ts +4 -4
- package/dist/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +8 -8
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-6b27d5d8.js → register-be7a7943.js} +9 -9
- package/dist/web-extension-cjs/register-be7a7943.js.map +1 -0
- package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/web-extension-cjs/src/core/providers/github.d.ts +4 -4
- package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +4 -4
- package/dist/web-extension-esm2017/auth-web-extension.d.ts +4 -4
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +9 -9
- package/dist/web-extension-esm2017/internal.js.map +1 -1
- package/dist/web-extension-esm2017/{register-83348242.js → register-f94f6285.js} +9 -9
- package/dist/web-extension-esm2017/register-f94f6285.js.map +1 -0
- package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/web-extension-esm2017/src/core/providers/github.d.ts +4 -4
- package/dist/web-extension-esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/web-extension-esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/web-extension-esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/web-extension-esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/package.json +6 -6
- package/dist/browser-cjs/index-22b094f0.js.map +0 -1
- package/dist/cordova/popup_redirect-31aa6bae.js.map +0 -1
- package/dist/esm2017/index-54738136.js.map +0 -1
- package/dist/esm5/index-5a49f2c0.js.map +0 -1
- package/dist/node/totp-721eac4b.js.map +0 -1
- package/dist/node-esm/totp-3675c216.js.map +0 -1
- package/dist/rn/index-d345c8d7.js.map +0 -1
- package/dist/web-extension-cjs/register-6b27d5d8.js.map +0 -1
- package/dist/web-extension-esm2017/register-83348242.js.map +0 -1
|
@@ -122,7 +122,7 @@ export declare class AuthImpl implements AuthInternal, _FirebaseService {
|
|
|
122
122
|
_getAppCheckToken(): Promise<string | undefined>;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Method to be used to cast down to our private
|
|
125
|
+
* Method to be used to cast down to our private implementation of Auth.
|
|
126
126
|
* It will also handle unwrapping from the compat type if necessary
|
|
127
127
|
*
|
|
128
128
|
* @param auth Auth object passed in from developer
|
|
@@ -39,7 +39,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
39
39
|
* if (result) {
|
|
40
40
|
* // This is the signed-in user
|
|
41
41
|
* const user = result.user;
|
|
42
|
-
* // This gives you a
|
|
42
|
+
* // This gives you a GitHub Access Token.
|
|
43
43
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
44
44
|
* const token = credential.accessToken;
|
|
45
45
|
* }
|
|
@@ -54,7 +54,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
54
54
|
*
|
|
55
55
|
* // The signed-in user info.
|
|
56
56
|
* const user = result.user;
|
|
57
|
-
* // This gives you a
|
|
57
|
+
* // This gives you a GitHub Access Token.
|
|
58
58
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
59
59
|
* const token = credential.accessToken;
|
|
60
60
|
* ```
|
|
@@ -67,9 +67,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
|
|
|
67
67
|
static readonly PROVIDER_ID: 'github.com';
|
|
68
68
|
constructor();
|
|
69
69
|
/**
|
|
70
|
-
* Creates a credential for
|
|
70
|
+
* Creates a credential for GitHub.
|
|
71
71
|
*
|
|
72
|
-
* @param accessToken -
|
|
72
|
+
* @param accessToken - GitHub access token.
|
|
73
73
|
*/
|
|
74
74
|
static credential(accessToken: string): OAuthCredential;
|
|
75
75
|
/**
|
|
@@ -56,7 +56,7 @@ export declare class Receiver {
|
|
|
56
56
|
* Unsubscribe an event handler from a particular event.
|
|
57
57
|
*
|
|
58
58
|
* @param eventType - Event name to unsubscribe from.
|
|
59
|
-
* @param eventHandler -
|
|
59
|
+
* @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
|
|
60
60
|
*
|
|
61
61
|
*/
|
|
62
62
|
_unsubscribe<T extends _ReceiverResponse, S extends _SenderRequest>(eventType: _EventType, eventHandler?: ReceiverHandler<T, S>): void;
|
|
@@ -20,7 +20,7 @@ import { AuthEvent, AuthEventType } from '../../model/popup_redirect';
|
|
|
20
20
|
/** Custom AuthEventManager that adds passive listeners to events */
|
|
21
21
|
export declare class CordovaAuthEventManager extends AuthEventManager {
|
|
22
22
|
private readonly passiveListeners;
|
|
23
|
-
private
|
|
23
|
+
private resolveInitialized;
|
|
24
24
|
private initPromise;
|
|
25
25
|
addPassiveListener(cb: (e: AuthEvent) => void): void;
|
|
26
26
|
removePassiveListener(cb: (e: AuthEvent) => void): void;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { Auth, User, Persistence } from '@firebase/auth';
|
|
18
18
|
import { WebDriver } from 'selenium-webdriver';
|
|
19
19
|
export declare const START_FUNCTION = "startAuth";
|
|
20
|
-
/** Helper
|
|
20
|
+
/** Helper wrapper around the WebDriver object */
|
|
21
21
|
export declare class AuthDriver {
|
|
22
22
|
webDriver: WebDriver;
|
|
23
23
|
start(browser: string): Promise<void>;
|
|
@@ -26,6 +26,6 @@ export declare class IdPPage {
|
|
|
26
26
|
fillEmail(email: string): Promise<void>;
|
|
27
27
|
fillDisplayName(displayName: string): Promise<void>;
|
|
28
28
|
fillScreenName(screenName: string): Promise<void>;
|
|
29
|
-
fillProfilePhoto(
|
|
29
|
+
fillProfilePhoto(profilePhoto: string): Promise<void>;
|
|
30
30
|
private fillInput;
|
|
31
31
|
}
|
|
@@ -1256,7 +1256,7 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1256
1256
|
* if (result) {
|
|
1257
1257
|
* // This is the signed-in user
|
|
1258
1258
|
* const user = result.user;
|
|
1259
|
-
* // This gives you a
|
|
1259
|
+
* // This gives you a GitHub Access Token.
|
|
1260
1260
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
1261
1261
|
* const token = credential.accessToken;
|
|
1262
1262
|
* }
|
|
@@ -1271,7 +1271,7 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1271
1271
|
*
|
|
1272
1272
|
* // The signed-in user info.
|
|
1273
1273
|
* const user = result.user;
|
|
1274
|
-
* // This gives you a
|
|
1274
|
+
* // This gives you a GitHub Access Token.
|
|
1275
1275
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
1276
1276
|
* const token = credential.accessToken;
|
|
1277
1277
|
* ```
|
|
@@ -1284,9 +1284,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
|
|
|
1284
1284
|
static readonly PROVIDER_ID: 'github.com';
|
|
1285
1285
|
constructor();
|
|
1286
1286
|
/**
|
|
1287
|
-
* Creates a credential for
|
|
1287
|
+
* Creates a credential for GitHub.
|
|
1288
1288
|
*
|
|
1289
|
-
* @param accessToken -
|
|
1289
|
+
* @param accessToken - GitHub access token.
|
|
1290
1290
|
*/
|
|
1291
1291
|
static credential(accessToken: string): OAuthCredential;
|
|
1292
1292
|
/**
|
|
@@ -1553,7 +1553,7 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1553
1553
|
* if (result) {
|
|
1554
1554
|
* // This is the signed-in user
|
|
1555
1555
|
* const user = result.user;
|
|
1556
|
-
* // This gives you a
|
|
1556
|
+
* // This gives you a GitHub Access Token.
|
|
1557
1557
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
1558
1558
|
* const token = credential.accessToken;
|
|
1559
1559
|
* }
|
|
@@ -1568,7 +1568,7 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1568
1568
|
*
|
|
1569
1569
|
* // The signed-in user info.
|
|
1570
1570
|
* const user = result.user;
|
|
1571
|
-
* // This gives you a
|
|
1571
|
+
* // This gives you a GitHub Access Token.
|
|
1572
1572
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
1573
1573
|
* const token = credential.accessToken;
|
|
1574
1574
|
* ```
|
|
@@ -1581,9 +1581,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
|
|
|
1581
1581
|
static readonly PROVIDER_ID: 'github.com';
|
|
1582
1582
|
constructor();
|
|
1583
1583
|
/**
|
|
1584
|
-
* Creates a credential for
|
|
1584
|
+
* Creates a credential for GitHub.
|
|
1585
1585
|
*
|
|
1586
|
-
* @param accessToken -
|
|
1586
|
+
* @param accessToken - GitHub access token.
|
|
1587
1587
|
*/
|
|
1588
1588
|
static credential(accessToken: string): OAuthCredential;
|
|
1589
1589
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-
|
|
2
|
-
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-
|
|
1
|
+
import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-f94f6285.js';
|
|
2
|
+
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-f94f6285.js';
|
|
3
3
|
import { _getProvider, getApp } from '@firebase/app';
|
|
4
4
|
import { getDefaultEmulatorHost } from '@firebase/util';
|
|
5
5
|
import 'tslib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isIframe, aa as _isMobileBrowser, ab as _isIE10, ac as _isSafari, ad as _isIOS, ae as _assert, af as Delay, ag as _window, ah as isV2, ai as _createError, aj as _recaptchaV2ScriptUrl, ak as _loadJS, al as _generateCallbackName, am as _castAuth, an as _isHttpOrHttps, ao as _isWorker, ap as getRecaptchaParams, aq as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ar as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, as as startEnrollPhoneMfa, at as startSignInPhoneMfa, au as sendPhoneVerificationCode, av as _link$1, P as PhoneAuthCredential, aw as _getInstance, ax as _signInWithCredential, ay as _reauthenticate, m as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _assertInstanceOf, aD as _generateEventId, aE as FederatedAuthProvider, aF as _persistenceKeyName, aG as _performApiRequest, aH as _getCurrentUrl, aI as _gapiScriptUrl, aJ as _emulatorUrl, aK as _isChromeIOS, aL as _isFirefox, aM as _isIOSStandalone, aN as BaseOAuthProvider, aO as _setWindowLocation, aP as MultiFactorAssertionImpl, aQ as finalizeEnrollPhoneMfa, aR as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aS as _setExternalJSProvider, aT as _isAndroid, aU as _isIOS7Or8 } from './register-
|
|
2
|
-
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aW as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, aY as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, aZ as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aV as UserImpl, ae as _assert, am as _castAuth, aA as _fail, aD as _generateEventId, aX as _getClientVersion, aw as _getInstance, aF as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-
|
|
1
|
+
import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isIframe, aa as _isMobileBrowser, ab as _isIE10, ac as _isSafari, ad as _isIOS, ae as _assert, af as Delay, ag as _window, ah as isV2, ai as _createError, aj as _recaptchaV2ScriptUrl, ak as _loadJS, al as _generateCallbackName, am as _castAuth, an as _isHttpOrHttps, ao as _isWorker, ap as getRecaptchaParams, aq as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ar as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, as as startEnrollPhoneMfa, at as startSignInPhoneMfa, au as sendPhoneVerificationCode, av as _link$1, P as PhoneAuthCredential, aw as _getInstance, ax as _signInWithCredential, ay as _reauthenticate, m as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _assertInstanceOf, aD as _generateEventId, aE as FederatedAuthProvider, aF as _persistenceKeyName, aG as _performApiRequest, aH as _getCurrentUrl, aI as _gapiScriptUrl, aJ as _emulatorUrl, aK as _isChromeIOS, aL as _isFirefox, aM as _isIOSStandalone, aN as BaseOAuthProvider, aO as _setWindowLocation, aP as MultiFactorAssertionImpl, aQ as finalizeEnrollPhoneMfa, aR as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aS as _setExternalJSProvider, aT as _isAndroid, aU as _isIOS7Or8 } from './register-f94f6285.js';
|
|
2
|
+
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aW as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, aY as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, aZ as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aV as UserImpl, ae as _assert, am as _castAuth, aA as _fail, aD as _generateEventId, aX as _getClientVersion, aw as _getInstance, aF as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-f94f6285.js';
|
|
3
3
|
import { getUA, querystring, getModularInstance, isEmpty, getExperimentalSetting, getDefaultEmulatorHost, querystringDecode } from '@firebase/util';
|
|
4
4
|
import { _isFirebaseServerApp, SDK_VERSION, _getProvider, getApp } from '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -586,7 +586,7 @@ class ReCaptchaLoaderImpl {
|
|
|
586
586
|
reject(_createError(auth, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */));
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
|
-
// Wrap the
|
|
589
|
+
// Wrap the recaptcha render function so that we know if the developer has
|
|
590
590
|
// called it separately
|
|
591
591
|
const render = recaptcha.render;
|
|
592
592
|
recaptcha.render = (container, params) => {
|
|
@@ -2193,7 +2193,7 @@ function matchDomain(expected) {
|
|
|
2193
2193
|
*/
|
|
2194
2194
|
const NETWORK_TIMEOUT = new Delay(30000, 60000);
|
|
2195
2195
|
/**
|
|
2196
|
-
* Reset
|
|
2196
|
+
* Reset unloaded GApi modules. If gapi.load fails due to a network error,
|
|
2197
2197
|
* it will stop working after a retrial. This is a hack to fix this issue.
|
|
2198
2198
|
*/
|
|
2199
2199
|
function resetUnloadedGapiModules() {
|
|
@@ -2528,7 +2528,7 @@ async function _getRedirectUrl(auth, provider, authType, redirectUrl, eventId, a
|
|
|
2528
2528
|
if (auth.tenantId) {
|
|
2529
2529
|
params.tid = auth.tenantId;
|
|
2530
2530
|
}
|
|
2531
|
-
// TODO: maybe set eid as
|
|
2531
|
+
// TODO: maybe set eid as endpointId
|
|
2532
2532
|
// TODO: maybe set fw as Frameworks.join(",")
|
|
2533
2533
|
const paramsDict = params;
|
|
2534
2534
|
for (const key of Object.keys(paramsDict)) {
|
|
@@ -2955,7 +2955,7 @@ async function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
2955
2955
|
if (typeof closeBrowserTab === 'function') {
|
|
2956
2956
|
closeBrowserTab();
|
|
2957
2957
|
}
|
|
2958
|
-
// Close inappbrowser
|
|
2958
|
+
// Close inappbrowser embedded webview in iOS7 and 8 case if still
|
|
2959
2959
|
// open.
|
|
2960
2960
|
if (typeof (iabRef === null || iabRef === void 0 ? void 0 : iabRef.close) === 'function') {
|
|
2961
2961
|
iabRef.close();
|
|
@@ -2967,7 +2967,7 @@ async function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
2967
2967
|
return;
|
|
2968
2968
|
}
|
|
2969
2969
|
onCloseTimer = window.setTimeout(() => {
|
|
2970
|
-
// Wait two
|
|
2970
|
+
// Wait two seconds after resume then reject.
|
|
2971
2971
|
reject(_createError(auth, "redirect-cancelled-by-user" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */));
|
|
2972
2972
|
}, REDIRECT_TIMEOUT_MS);
|
|
2973
2973
|
}
|
|
@@ -3084,7 +3084,7 @@ class CordovaAuthEventManager extends AuthEventManager {
|
|
|
3084
3084
|
super(...arguments);
|
|
3085
3085
|
this.passiveListeners = new Set();
|
|
3086
3086
|
this.initPromise = new Promise(resolve => {
|
|
3087
|
-
this.
|
|
3087
|
+
this.resolveInitialized = resolve;
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|
|
3090
3090
|
addPassiveListener(cb) {
|
|
@@ -3101,7 +3101,7 @@ class CordovaAuthEventManager extends AuthEventManager {
|
|
|
3101
3101
|
}
|
|
3102
3102
|
/** Override the onEvent method */
|
|
3103
3103
|
onEvent(event) {
|
|
3104
|
-
this.
|
|
3104
|
+
this.resolveInitialized();
|
|
3105
3105
|
this.passiveListeners.forEach(cb => cb(event));
|
|
3106
3106
|
return super.onEvent(event);
|
|
3107
3107
|
}
|