@firebase/auth 0.20.4 → 0.20.5-20220707195244
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/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-e75f0604.js → popup_redirect-4aad3eda.js} +4 -3
- package/dist/cordova/popup_redirect-4aad3eda.js.map +1 -0
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/esm2017/{index-58473f72.js → index-3301b06c.js} +13 -5
- package/dist/esm2017/index-3301b06c.js.map +1 -0
- 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-37b12497.js → index-8278829f.js} +13 -5
- package/dist/esm5/index-8278829f.js.map +1 -0
- 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/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-f9288b31.js → index-17564cbf.js} +4 -3
- package/dist/node/index-17564cbf.js.map +1 -0
- 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-a262d8f8.js → index-f3d283d7.js} +4 -3
- package/dist/node-esm/index-f3d283d7.js.map +1 -0
- 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-d36aa73c.js → phone-f5af5b18.js} +13 -5
- package/dist/rn/phone-f5af5b18.js.map +1 -0
- 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
- package/dist/cordova/popup_redirect-e75f0604.js.map +0 -1
- package/dist/esm2017/index-58473f72.js.map +0 -1
- package/dist/esm5/index-37b12497.js.map +0 -1
- package/dist/node/index-f9288b31.js.map +0 -1
- package/dist/node-esm/index-a262d8f8.js.map +0 -1
- package/dist/rn/phone-d36aa73c.js.map +0 -1
package/dist/node-esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-f3d283d7.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ap as _getInstance, aq as _assert, ar as _signInWithCredential, as as _reauthenticate, at as _link$1, H as AuthCredential, au as signInWithIdp, av as _fail, aw as debugAssert, ax as _persistenceKeyName, ay as _castAuth, az as FederatedAuthProvider, aA as BaseOAuthProvider, aB as _emulatorUrl, aC as _performApiRequest, aD as _isIOS7Or8, aE as _isIOS, aF as _isAndroid, aG as _createError, aH as _isSafari, aI as _isIframe, aJ as _isMobileBrowser, aK as _isIE10 } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aM as AuthImpl, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aO as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aP as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aL as UserImpl, aq as _assert, ay as _castAuth, av as _fail, aN as _getClientVersion, ap as _getInstance, ax as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { ap as _getInstance, aq as _assert, ar as _signInWithCredential, as as _reauthenticate, at as _link$1, H as AuthCredential, au as signInWithIdp, av as _fail, aw as debugAssert, ax as _persistenceKeyName, ay as _castAuth, az as FederatedAuthProvider, aA as BaseOAuthProvider, aB as _emulatorUrl, aC as _performApiRequest, aD as _isIOS7Or8, aE as _isIOS, aF as _isAndroid, aG as _createError, aH as _isSafari, aI as _isIframe, aJ as _isMobileBrowser, aK as _isIE10 } from './index-f3d283d7.js';
|
|
2
|
+
export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aM as AuthImpl, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aO as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aP as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aL as UserImpl, aq as _assert, ay as _castAuth, av as _fail, aN as _getClientVersion, ap as _getInstance, ax as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-f3d283d7.js';
|
|
3
3
|
import { querystring, isEmpty, getUA, querystringDecode } from '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import { SDK_VERSION } from '@firebase/app';
|
|
@@ -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;
|
package/dist/rn/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var ReactNative = require('react-native');
|
|
6
6
|
var app = require('@firebase/app');
|
|
7
|
-
var phone = require('./phone-
|
|
7
|
+
var phone = require('./phone-f5af5b18.js');
|
|
8
8
|
var tslib = require('tslib');
|
|
9
9
|
require('@firebase/util');
|
|
10
10
|
require('@firebase/component');
|
package/dist/rn/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var phone = require('./phone-
|
|
5
|
+
var phone = require('./phone-f5af5b18.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@firebase/app');
|
|
@@ -2295,7 +2295,8 @@ function _isWebOS(ua) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
function _isIOS(ua) {
|
|
2297
2297
|
if (ua === void 0) { ua = util.getUA(); }
|
|
2298
|
-
return /iphone|ipad|ipod/i.test(ua)
|
|
2298
|
+
return /iphone|ipad|ipod/i.test(ua) ||
|
|
2299
|
+
(/macintosh/i.test(ua) && /mobile/i.test(ua));
|
|
2299
2300
|
}
|
|
2300
2301
|
function _isIOS7Or8(ua) {
|
|
2301
2302
|
if (ua === void 0) { ua = util.getUA(); }
|
|
@@ -6970,7 +6971,7 @@ function multiFactor(user) {
|
|
|
6970
6971
|
}
|
|
6971
6972
|
|
|
6972
6973
|
var name = "@firebase/auth";
|
|
6973
|
-
var version = "0.20.
|
|
6974
|
+
var version = "0.20.5-20220707195244";
|
|
6974
6975
|
|
|
6975
6976
|
/**
|
|
6976
6977
|
* @license
|
|
@@ -7566,9 +7567,15 @@ var RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?';
|
|
|
7566
7567
|
*/
|
|
7567
7568
|
var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
7568
7569
|
function ReCaptchaLoaderImpl() {
|
|
7570
|
+
var _a;
|
|
7569
7571
|
this.hostLanguage = '';
|
|
7570
7572
|
this.counter = 0;
|
|
7571
|
-
|
|
7573
|
+
/**
|
|
7574
|
+
* Check for `render()` method. `window.grecaptcha` will exist if the Enterprise
|
|
7575
|
+
* version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but
|
|
7576
|
+
* `window.grecaptcha.render()` will not. Another load will add it.
|
|
7577
|
+
*/
|
|
7578
|
+
this.librarySeparatelyLoaded = !!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render);
|
|
7572
7579
|
}
|
|
7573
7580
|
ReCaptchaLoaderImpl.prototype.load = function (auth, hl) {
|
|
7574
7581
|
var _this = this;
|
|
@@ -7615,6 +7622,7 @@ var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
|
7615
7622
|
this.counter--;
|
|
7616
7623
|
};
|
|
7617
7624
|
ReCaptchaLoaderImpl.prototype.shouldResolveImmediately = function (hl) {
|
|
7625
|
+
var _a;
|
|
7618
7626
|
// We can resolve immediately if:
|
|
7619
7627
|
// • grecaptcha is already defined AND (
|
|
7620
7628
|
// 1. the requested language codes are the same OR
|
|
@@ -7622,7 +7630,7 @@ var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
|
7622
7630
|
// 3. the library was already loaded by the app
|
|
7623
7631
|
// In cases (2) and (3), we _can't_ reload as it would break the recaptchas
|
|
7624
7632
|
// that are already in the page
|
|
7625
|
-
return (!!_window().grecaptcha &&
|
|
7633
|
+
return (!!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render) &&
|
|
7626
7634
|
(hl === this.hostLanguage ||
|
|
7627
7635
|
this.counter > 0 ||
|
|
7628
7636
|
this.librarySeparatelyLoaded));
|
|
@@ -8495,4 +8503,4 @@ exports.updateProfile = updateProfile;
|
|
|
8495
8503
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
8496
8504
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
8497
8505
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
8498
|
-
//# sourceMappingURL=phone-
|
|
8506
|
+
//# sourceMappingURL=phone-f5af5b18.js.map
|