@firebase/auth 1.7.5 → 1.7.6-20240730204232
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-5abb3d6f.js} +12 -12
- package/dist/browser-cjs/index-5abb3d6f.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-dd5757b3.js} +13 -13
- package/dist/cordova/popup_redirect-dd5757b3.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-8de039e2.js} +12 -12
- package/dist/esm2017/index-8de039e2.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-123a5a9a.js} +11 -11
- package/dist/esm5/index-123a5a9a.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-5a720d75.js} +8 -8
- package/dist/node/totp-5a720d75.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-3e08c124.js} +8 -8
- package/dist/node-esm/totp-3e08c124.js.map +1 -0
- package/dist/rn/{index-d345c8d7.js → index-5ffd2356.js} +9 -9
- package/dist/rn/index-5ffd2356.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-b9f6e07b.js} +9 -9
- package/dist/web-extension-cjs/register-b9f6e07b.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-67b84c7c.js} +9 -9
- package/dist/web-extension-esm2017/register-67b84c7c.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 +2 -2
- 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
|
@@ -168,7 +168,7 @@ var Receiver = /** @class */ (function () {
|
|
|
168
168
|
* Unsubscribe an event handler from a particular event.
|
|
169
169
|
*
|
|
170
170
|
* @param eventType - Event name to unsubscribe from.
|
|
171
|
-
* @param eventHandler -
|
|
171
|
+
* @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
|
|
172
172
|
*
|
|
173
173
|
*/
|
|
174
174
|
Receiver.prototype._unsubscribe = function (eventType, eventHandler) {
|
|
@@ -973,7 +973,7 @@ function _debugErrorMap() {
|
|
|
973
973
|
_a["internal-error" /* AuthErrorCode.INTERNAL_ERROR */] = 'An internal AuthError has occurred.',
|
|
974
974
|
_a["invalid-app-credential" /* AuthErrorCode.INVALID_APP_CREDENTIAL */] = 'The phone verification request contains an invalid application verifier.' +
|
|
975
975
|
' The reCAPTCHA token response is either invalid or expired.',
|
|
976
|
-
_a["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */] = 'The mobile app identifier is not
|
|
976
|
+
_a["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */] = 'The mobile app identifier is not registered for the current project.',
|
|
977
977
|
_a["invalid-user-token" /* AuthErrorCode.INVALID_AUTH */] = "This user's credential isn't valid for this project. This can happen " +
|
|
978
978
|
"if the user's token has been tampered with, or if the user isn't for " +
|
|
979
979
|
'the project associated with this API key.',
|
|
@@ -4579,7 +4579,7 @@ var AuthImpl = /** @class */ (function () {
|
|
|
4579
4579
|
return AuthImpl;
|
|
4580
4580
|
}());
|
|
4581
4581
|
/**
|
|
4582
|
-
* Method to be used to cast down to our private
|
|
4582
|
+
* Method to be used to cast down to our private implementation of Auth.
|
|
4583
4583
|
* It will also handle unwrapping from the compat type if necessary
|
|
4584
4584
|
*
|
|
4585
4585
|
* @param auth Auth object passed in from developer
|
|
@@ -6461,7 +6461,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
6461
6461
|
* if (result) {
|
|
6462
6462
|
* // This is the signed-in user
|
|
6463
6463
|
* const user = result.user;
|
|
6464
|
-
* // This gives you a
|
|
6464
|
+
* // This gives you a GitHub Access Token.
|
|
6465
6465
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
6466
6466
|
* const token = credential.accessToken;
|
|
6467
6467
|
* }
|
|
@@ -6476,7 +6476,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
6476
6476
|
*
|
|
6477
6477
|
* // The signed-in user info.
|
|
6478
6478
|
* const user = result.user;
|
|
6479
|
-
* // This gives you a
|
|
6479
|
+
* // This gives you a GitHub Access Token.
|
|
6480
6480
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
6481
6481
|
* const token = credential.accessToken;
|
|
6482
6482
|
* ```
|
|
@@ -6488,9 +6488,9 @@ var GithubAuthProvider = /** @class */ (function (_super) {
|
|
|
6488
6488
|
return _super.call(this, "github.com" /* ProviderId.GITHUB */) || this;
|
|
6489
6489
|
}
|
|
6490
6490
|
/**
|
|
6491
|
-
* Creates a credential for
|
|
6491
|
+
* Creates a credential for GitHub.
|
|
6492
6492
|
*
|
|
6493
|
-
* @param accessToken -
|
|
6493
|
+
* @param accessToken - GitHub access token.
|
|
6494
6494
|
*/
|
|
6495
6495
|
GithubAuthProvider.credential = function (accessToken) {
|
|
6496
6496
|
return OAuthCredential._fromParams({
|
|
@@ -9056,7 +9056,7 @@ function multiFactor(user) {
|
|
|
9056
9056
|
}
|
|
9057
9057
|
|
|
9058
9058
|
var name = "@firebase/auth";
|
|
9059
|
-
var version = "1.7.
|
|
9059
|
+
var version = "1.7.6-20240730204232";
|
|
9060
9060
|
|
|
9061
9061
|
/**
|
|
9062
9062
|
* @license
|
|
@@ -10663,7 +10663,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
10663
10663
|
if (typeof closeBrowserTab === 'function') {
|
|
10664
10664
|
closeBrowserTab();
|
|
10665
10665
|
}
|
|
10666
|
-
// Close inappbrowser
|
|
10666
|
+
// Close inappbrowser embedded webview in iOS7 and 8 case if still
|
|
10667
10667
|
// open.
|
|
10668
10668
|
if (typeof (iabRef === null || iabRef === void 0 ? void 0 : iabRef.close) === 'function') {
|
|
10669
10669
|
iabRef.close();
|
|
@@ -10675,7 +10675,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
10675
10675
|
return;
|
|
10676
10676
|
}
|
|
10677
10677
|
onCloseTimer = window.setTimeout(function () {
|
|
10678
|
-
// Wait two
|
|
10678
|
+
// Wait two seconds after resume then reject.
|
|
10679
10679
|
reject(_createError(auth, "redirect-cancelled-by-user" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */));
|
|
10680
10680
|
}, REDIRECT_TIMEOUT_MS);
|
|
10681
10681
|
}
|
|
@@ -10922,7 +10922,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
|
|
|
10922
10922
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10923
10923
|
_this.passiveListeners = new Set();
|
|
10924
10924
|
_this.initPromise = new Promise(function (resolve) {
|
|
10925
|
-
_this.
|
|
10925
|
+
_this.resolveInitialized = resolve;
|
|
10926
10926
|
});
|
|
10927
10927
|
return _this;
|
|
10928
10928
|
}
|
|
@@ -10940,7 +10940,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
|
|
|
10940
10940
|
};
|
|
10941
10941
|
/** Override the onEvent method */
|
|
10942
10942
|
CordovaAuthEventManager.prototype.onEvent = function (event) {
|
|
10943
|
-
this.
|
|
10943
|
+
this.resolveInitialized();
|
|
10944
10944
|
this.passiveListeners.forEach(function (cb) { return cb(event); });
|
|
10945
10945
|
return _super.prototype.onEvent.call(this, event);
|
|
10946
10946
|
};
|
|
@@ -11275,4 +11275,4 @@ function generateNoEvent() {
|
|
|
11275
11275
|
}
|
|
11276
11276
|
|
|
11277
11277
|
export { signInWithEmailAndPassword as $, ActionCodeOperation as A, PhoneAuthCredential as B, inMemoryPersistence as C, EmailAuthProvider as D, EmailAuthCredential as E, FactorId as F, FacebookAuthProvider as G, GoogleAuthProvider as H, GithubAuthProvider as I, OAuthProvider as J, SAMLAuthProvider as K, signInAnonymously as L, signInWithCredential as M, linkWithCredential as N, OperationType as O, ProviderId as P, reauthenticateWithCredential as Q, signInWithCustomToken as R, SignInMethod as S, TwitterAuthProvider as T, sendPasswordResetEmail as U, confirmPasswordReset as V, applyActionCode as W, checkActionCode as X, verifyPasswordResetCode as Y, createUserWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, _setExternalJSProvider as a$, sendSignInLinkToEmail as a0, isSignInWithEmailLink as a1, signInWithEmailLink as a2, fetchSignInMethodsForEmail as a3, sendEmailVerification as a4, verifyBeforeUpdateEmail as a5, ActionCodeURL as a6, parseActionCodeURL as a7, updateProfile as a8, updateEmail as a9, _link$1 as aA, debugAssert as aB, _generateEventId as aC, AbstractPopupRedirectOperation as aD, _assertInstanceOf as aE, _withDefaultResolver as aF, FederatedAuthProvider as aG, _fail as aH, _getProjectConfig as aI, _getCurrentUrl as aJ, _gapiScriptUrl as aK, _emulatorUrl as aL, _isChromeIOS as aM, _isFirefox as aN, _isIOSStandalone as aO, _getRedirectUrl as aP, _setWindowLocation as aQ, _isMobileBrowser as aR, _isSafari as aS, _isIOS as aT, _getRedirectResult as aU, _overrideRedirectResult as aV, AuthEventManager as aW, debugFail as aX, finalizeEnrollPhoneMfa as aY, finalizeEnrollTotpMfa as aZ, startEnrollTotpMfa as a_, updatePassword as aa, getIdToken as ab, getIdTokenResult as ac, unlink as ad, getAdditionalUserInfo as ae, reload as af, getMultiFactorResolver as ag, multiFactor as ah, _performApiRequest as ai, _addTidIfNecessary as aj, _assert as ak, Delay as al, _window as am, isV2 as an, _createError as ao, _recaptchaV2ScriptUrl as ap, _loadJS as aq, _generateCallbackName as ar, getRecaptchaParams as as, _isHttpOrHttps as at, _isWorker as au, _castAuth as av, _serverAppCurrentUserOperationNotSupportedError as aw, _assertLinkedStatus as ax, sendPhoneVerificationCode as ay, startEnrollPhoneMfa as az, _linkWithRedirect as b, _persistenceKeyName as b0, UserImpl as b1, _getInstance as b2, AuthImpl as b3, _getClientVersion as b4, FetchProvider as b5, SAMLAuthCredential as b6, signInWithRedirect as b7, linkWithRedirect as b8, reauthenticateWithRedirect as b9, 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, revokeAccessToken as n, onIdTokenChanged as o, deleteUser as p, debugErrorMap as q, registerAuth as r, setPersistence as s, prodErrorMap as t, useDeviceLanguage as u, validatePassword as v, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as w, connectAuthEmulator as x, AuthCredential as y, OAuthCredential as z };
|
|
11278
|
-
//# sourceMappingURL=popup_redirect-
|
|
11278
|
+
//# sourceMappingURL=popup_redirect-dd5757b3.js.map
|