@firebase/auth 1.7.5 → 1.7.6-canary.08bb87b9f
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-f068d89b.js} +12 -49
- package/dist/browser-cjs/index-f068d89b.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-c40b6c29.js} +13 -50
- package/dist/cordova/popup_redirect-c40b6c29.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-4398bf28.js} +12 -49
- package/dist/esm2017/index-4398bf28.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-9c402d1b.js} +11 -48
- package/dist/esm5/index-9c402d1b.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 -32
- 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-c913d6a8.js} +8 -20
- package/dist/node/totp-c913d6a8.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +8 -35
- 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-82daeec5.js} +9 -19
- package/dist/node-esm/totp-82daeec5.js.map +1 -0
- package/dist/rn/{index-d345c8d7.js → index-499673c8.js} +9 -20
- package/dist/rn/index-499673c8.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 -34
- 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 -35
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-6b27d5d8.js → register-7f3bef7e.js} +9 -20
- package/dist/web-extension-cjs/register-7f3bef7e.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 +10 -37
- package/dist/web-extension-esm2017/internal.js.map +1 -1
- package/dist/web-extension-esm2017/{register-83348242.js → register-e842a4a6.js} +10 -20
- package/dist/web-extension-esm2017/register-e842a4a6.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
|
@@ -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.',
|
|
@@ -3410,16 +3410,6 @@ function _isMobileBrowser(ua) {
|
|
|
3410
3410
|
_isBlackBerry(ua) ||
|
|
3411
3411
|
/windows phone/i.test(ua) ||
|
|
3412
3412
|
_isIEMobile(ua));
|
|
3413
|
-
}
|
|
3414
|
-
function _isIframe() {
|
|
3415
|
-
try {
|
|
3416
|
-
// Check that the current window is not the top window.
|
|
3417
|
-
// If so, return true.
|
|
3418
|
-
return !!(window && window !== window.top);
|
|
3419
|
-
}
|
|
3420
|
-
catch (e) {
|
|
3421
|
-
return false;
|
|
3422
|
-
}
|
|
3423
3413
|
}
|
|
3424
3414
|
|
|
3425
3415
|
/**
|
|
@@ -4579,7 +4569,7 @@ var AuthImpl = /** @class */ (function () {
|
|
|
4579
4569
|
return AuthImpl;
|
|
4580
4570
|
}());
|
|
4581
4571
|
/**
|
|
4582
|
-
* Method to be used to cast down to our private
|
|
4572
|
+
* Method to be used to cast down to our private implementation of Auth.
|
|
4583
4573
|
* It will also handle unwrapping from the compat type if necessary
|
|
4584
4574
|
*
|
|
4585
4575
|
* @param auth Auth object passed in from developer
|
|
@@ -6461,7 +6451,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
6461
6451
|
* if (result) {
|
|
6462
6452
|
* // This is the signed-in user
|
|
6463
6453
|
* const user = result.user;
|
|
6464
|
-
* // This gives you a
|
|
6454
|
+
* // This gives you a GitHub Access Token.
|
|
6465
6455
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
6466
6456
|
* const token = credential.accessToken;
|
|
6467
6457
|
* }
|
|
@@ -6476,7 +6466,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
6476
6466
|
*
|
|
6477
6467
|
* // The signed-in user info.
|
|
6478
6468
|
* const user = result.user;
|
|
6479
|
-
* // This gives you a
|
|
6469
|
+
* // This gives you a GitHub Access Token.
|
|
6480
6470
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
6481
6471
|
* const token = credential.accessToken;
|
|
6482
6472
|
* ```
|
|
@@ -6488,9 +6478,9 @@ var GithubAuthProvider = /** @class */ (function (_super) {
|
|
|
6488
6478
|
return _super.call(this, "github.com" /* ProviderId.GITHUB */) || this;
|
|
6489
6479
|
}
|
|
6490
6480
|
/**
|
|
6491
|
-
* Creates a credential for
|
|
6481
|
+
* Creates a credential for GitHub.
|
|
6492
6482
|
*
|
|
6493
|
-
* @param accessToken -
|
|
6483
|
+
* @param accessToken - GitHub access token.
|
|
6494
6484
|
*/
|
|
6495
6485
|
GithubAuthProvider.credential = function (accessToken) {
|
|
6496
6486
|
return OAuthCredential._fromParams({
|
|
@@ -9056,7 +9046,7 @@ function multiFactor(user) {
|
|
|
9056
9046
|
}
|
|
9057
9047
|
|
|
9058
9048
|
var name = "@firebase/auth";
|
|
9059
|
-
var version = "1.7.
|
|
9049
|
+
var version = "1.7.6-canary.08bb87b9f";
|
|
9060
9050
|
|
|
9061
9051
|
/**
|
|
9062
9052
|
* @license
|
|
@@ -9390,10 +9380,6 @@ var BrowserPersistenceClass = /** @class */ (function () {
|
|
|
9390
9380
|
* See the License for the specific language governing permissions and
|
|
9391
9381
|
* limitations under the License.
|
|
9392
9382
|
*/
|
|
9393
|
-
function _iframeCannotSyncWebStorage() {
|
|
9394
|
-
var ua = getUA();
|
|
9395
|
-
return _isSafari(ua) || _isIOS(ua);
|
|
9396
|
-
}
|
|
9397
9383
|
// The polling period in case events are not supported
|
|
9398
9384
|
var _POLLING_INTERVAL_MS = 1000;
|
|
9399
9385
|
// The IE 10 localStorage cross tab synchronization delay in milliseconds
|
|
@@ -9408,8 +9394,6 @@ var BrowserLocalPersistence = /** @class */ (function (_super) {
|
|
|
9408
9394
|
// setTimeout return value is platform specific
|
|
9409
9395
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9410
9396
|
_this.pollTimer = null;
|
|
9411
|
-
// Safari or iOS browser and embedded in an iframe.
|
|
9412
|
-
_this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
|
|
9413
9397
|
// Whether to use polling instead of depending on window events
|
|
9414
9398
|
_this.fallbackToPolling = _isMobileBrowser();
|
|
9415
9399
|
_this._shouldAllowMigration = true;
|
|
@@ -9452,27 +9436,6 @@ var BrowserLocalPersistence = /** @class */ (function (_super) {
|
|
|
9452
9436
|
// Remove polling listener to prevent possible event duplication.
|
|
9453
9437
|
this.stopPolling();
|
|
9454
9438
|
}
|
|
9455
|
-
// Safari embedded iframe. Storage event will trigger with the delta
|
|
9456
|
-
// changes but no changes will be applied to the iframe localStorage.
|
|
9457
|
-
if (this.safariLocalStorageNotSynced) {
|
|
9458
|
-
// Get current iframe page value.
|
|
9459
|
-
var storedValue_1 = this.storage.getItem(key);
|
|
9460
|
-
// Value not synchronized, synchronize manually.
|
|
9461
|
-
if (event.newValue !== storedValue_1) {
|
|
9462
|
-
if (event.newValue !== null) {
|
|
9463
|
-
// Value changed from current value.
|
|
9464
|
-
this.storage.setItem(key, event.newValue);
|
|
9465
|
-
}
|
|
9466
|
-
else {
|
|
9467
|
-
// Current value deleted.
|
|
9468
|
-
this.storage.removeItem(key);
|
|
9469
|
-
}
|
|
9470
|
-
}
|
|
9471
|
-
else if (this.localCache[key] === event.newValue && !poll) {
|
|
9472
|
-
// Already detected and processed, do not trigger listeners again.
|
|
9473
|
-
return;
|
|
9474
|
-
}
|
|
9475
|
-
}
|
|
9476
9439
|
var triggerListeners = function () {
|
|
9477
9440
|
// Keep local map up to date in case storage event is triggered before
|
|
9478
9441
|
// poll.
|
|
@@ -10663,7 +10626,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
10663
10626
|
if (typeof closeBrowserTab === 'function') {
|
|
10664
10627
|
closeBrowserTab();
|
|
10665
10628
|
}
|
|
10666
|
-
// Close inappbrowser
|
|
10629
|
+
// Close inappbrowser embedded webview in iOS7 and 8 case if still
|
|
10667
10630
|
// open.
|
|
10668
10631
|
if (typeof (iabRef === null || iabRef === void 0 ? void 0 : iabRef.close) === 'function') {
|
|
10669
10632
|
iabRef.close();
|
|
@@ -10675,7 +10638,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
|
|
|
10675
10638
|
return;
|
|
10676
10639
|
}
|
|
10677
10640
|
onCloseTimer = window.setTimeout(function () {
|
|
10678
|
-
// Wait two
|
|
10641
|
+
// Wait two seconds after resume then reject.
|
|
10679
10642
|
reject(_createError(auth, "redirect-cancelled-by-user" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */));
|
|
10680
10643
|
}, REDIRECT_TIMEOUT_MS);
|
|
10681
10644
|
}
|
|
@@ -10922,7 +10885,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
|
|
|
10922
10885
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10923
10886
|
_this.passiveListeners = new Set();
|
|
10924
10887
|
_this.initPromise = new Promise(function (resolve) {
|
|
10925
|
-
_this.
|
|
10888
|
+
_this.resolveInitialized = resolve;
|
|
10926
10889
|
});
|
|
10927
10890
|
return _this;
|
|
10928
10891
|
}
|
|
@@ -10940,7 +10903,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
|
|
|
10940
10903
|
};
|
|
10941
10904
|
/** Override the onEvent method */
|
|
10942
10905
|
CordovaAuthEventManager.prototype.onEvent = function (event) {
|
|
10943
|
-
this.
|
|
10906
|
+
this.resolveInitialized();
|
|
10944
10907
|
this.passiveListeners.forEach(function (cb) { return cb(event); });
|
|
10945
10908
|
return _super.prototype.onEvent.call(this, event);
|
|
10946
10909
|
};
|
|
@@ -11275,4 +11238,4 @@ function generateNoEvent() {
|
|
|
11275
11238
|
}
|
|
11276
11239
|
|
|
11277
11240
|
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-
|
|
11241
|
+
//# sourceMappingURL=popup_redirect-c40b6c29.js.map
|