@firebase/auth 0.20.5-20220707184205 → 0.20.5
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 +7 -6
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +11 -4
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-dfd81338.js → popup_redirect-07cdf0b7.js} +2 -2
- package/dist/cordova/{popup_redirect-dfd81338.js.map → popup_redirect-07cdf0b7.js.map} +1 -1
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/esm2017/{index-4281edbd.js → index-90ebcfae.js} +11 -4
- package/dist/esm2017/{index-4281edbd.js.map → index-90ebcfae.js.map} +1 -1
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/esm5/{index-d90af3d3.js → index-7bf6e808.js} +11 -4
- package/dist/esm5/{index-d90af3d3.js.map → index-7bf6e808.js.map} +1 -1
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/index.webworker.esm5.js +1 -1
- package/dist/node/{index-311e8df9.js → index-e6390d64.js} +2 -2
- package/dist/node/{index-311e8df9.js.map → index-e6390d64.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/node-esm/{index-3d1d600d.js → index-f3c5e390.js} +2 -2
- package/dist/node-esm/{index-3d1d600d.js.map → index-f3c5e390.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-d30540d6.js → phone-51423d6b.js} +11 -4
- package/dist/rn/{phone-d30540d6.js.map → phone-51423d6b.js.map} +1 -1
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/package.json +5 -5
|
@@ -33,6 +33,11 @@ export interface ReCaptchaLoader {
|
|
|
33
33
|
export declare class ReCaptchaLoaderImpl implements ReCaptchaLoader {
|
|
34
34
|
private hostLanguage;
|
|
35
35
|
private counter;
|
|
36
|
+
/**
|
|
37
|
+
* Check for `render()` method. `window.grecaptcha` will exist if the Enterprise
|
|
38
|
+
* version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but
|
|
39
|
+
* `window.grecaptcha.render()` will not. Another load will add it.
|
|
40
|
+
*/
|
|
36
41
|
private readonly librarySeparatelyLoaded;
|
|
37
42
|
load(auth: AuthInternal, hl?: string): Promise<Recaptcha>;
|
|
38
43
|
clearedOneInstance(): void;
|
|
@@ -7213,9 +7213,15 @@ const RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?';
|
|
|
7213
7213
|
*/
|
|
7214
7214
|
class ReCaptchaLoaderImpl {
|
|
7215
7215
|
constructor() {
|
|
7216
|
+
var _a;
|
|
7216
7217
|
this.hostLanguage = '';
|
|
7217
7218
|
this.counter = 0;
|
|
7218
|
-
|
|
7219
|
+
/**
|
|
7220
|
+
* Check for `render()` method. `window.grecaptcha` will exist if the Enterprise
|
|
7221
|
+
* version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but
|
|
7222
|
+
* `window.grecaptcha.render()` will not. Another load will add it.
|
|
7223
|
+
*/
|
|
7224
|
+
this.librarySeparatelyLoaded = !!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render);
|
|
7219
7225
|
}
|
|
7220
7226
|
load(auth, hl = '') {
|
|
7221
7227
|
_assert(isHostLanguageValid(hl), auth, "argument-error" /* ARGUMENT_ERROR */);
|
|
@@ -7260,6 +7266,7 @@ class ReCaptchaLoaderImpl {
|
|
|
7260
7266
|
this.counter--;
|
|
7261
7267
|
}
|
|
7262
7268
|
shouldResolveImmediately(hl) {
|
|
7269
|
+
var _a;
|
|
7263
7270
|
// We can resolve immediately if:
|
|
7264
7271
|
// • grecaptcha is already defined AND (
|
|
7265
7272
|
// 1. the requested language codes are the same OR
|
|
@@ -7267,7 +7274,7 @@ class ReCaptchaLoaderImpl {
|
|
|
7267
7274
|
// 3. the library was already loaded by the app
|
|
7268
7275
|
// In cases (2) and (3), we _can't_ reload as it would break the recaptchas
|
|
7269
7276
|
// that are already in the page
|
|
7270
|
-
return (!!_window().grecaptcha &&
|
|
7277
|
+
return (!!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render) &&
|
|
7271
7278
|
(hl === this.hostLanguage ||
|
|
7272
7279
|
this.counter > 0 ||
|
|
7273
7280
|
this.librarySeparatelyLoaded));
|
|
@@ -9283,7 +9290,7 @@ class PhoneMultiFactorGenerator {
|
|
|
9283
9290
|
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
9284
9291
|
|
|
9285
9292
|
var name = "@firebase/auth";
|
|
9286
|
-
var version = "0.20.5
|
|
9293
|
+
var version = "0.20.5";
|
|
9287
9294
|
|
|
9288
9295
|
/**
|
|
9289
9296
|
* @license
|
|
@@ -9474,4 +9481,4 @@ function getAuth(app = getApp()) {
|
|
|
9474
9481
|
registerAuth("Browser" /* BROWSER */);
|
|
9475
9482
|
|
|
9476
9483
|
export { signInWithCustomToken as $, ActionCodeOperation as A, debugErrorMap as B, prodErrorMap as C, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as D, initializeAuth as E, FactorId as F, connectAuthEmulator as G, AuthCredential as H, EmailAuthCredential as I, OAuthCredential as J, PhoneAuthCredential as K, inMemoryPersistence as L, EmailAuthProvider as M, FacebookAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GoogleAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, GithubAuthProvider as T, OAuthProvider as U, SAMLAuthProvider as V, TwitterAuthProvider as W, signInAnonymously as X, signInWithCredential as Y, linkWithCredential as Z, reauthenticateWithCredential as _, browserSessionPersistence as a, sendPasswordResetEmail as a0, confirmPasswordReset as a1, applyActionCode as a2, checkActionCode as a3, verifyPasswordResetCode as a4, createUserWithEmailAndPassword as a5, signInWithEmailAndPassword as a6, sendSignInLinkToEmail as a7, isSignInWithEmailLink as a8, signInWithEmailLink as a9, AuthEventManager as aA, _getRedirectResult as aB, _overrideRedirectResult as aC, _clearRedirectOutcomes as aD, _castAuth as aE, UserImpl as aF, AuthImpl as aG, _getClientVersion as aH, _generateEventId as aI, AuthPopup as aJ, FetchProvider as aK, SAMLAuthCredential as aL, fetchSignInMethodsForEmail as aa, sendEmailVerification as ab, verifyBeforeUpdateEmail as ac, ActionCodeURL as ad, parseActionCodeURL as ae, updateProfile as af, updateEmail as ag, updatePassword as ah, getIdToken as ai, getIdTokenResult as aj, unlink as ak, getAdditionalUserInfo as al, reload as am, getMultiFactorResolver as an, multiFactor as ao, _isIOS7Or8 as ap, debugAssert as aq, _isIOS as ar, _isAndroid as as, _fail as at, _getRedirectUrl as au, _getProjectConfig as av, _createError as aw, _assert as ax, _getInstance as ay, _persistenceKeyName 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, getAuth as n, ProviderId as o, setPersistence as p, onIdTokenChanged as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, beforeAuthStateChanged as t, updatePhoneNumber as u, onAuthStateChanged as v, useDeviceLanguage as w, updateCurrentUser as x, signOut as y, deleteUser as z };
|
|
9477
|
-
//# sourceMappingURL=index-
|
|
9484
|
+
//# sourceMappingURL=index-90ebcfae.js.map
|