@firebase/auth 0.20.5-20220707184205 → 0.20.5-canary.0361bf3d7
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/auth-public.d.ts +0 -4
- package/dist/auth.d.ts +0 -4
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +13 -9
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-dfd81338.js → popup_redirect-d4c483cb.js} +41 -31
- package/dist/cordova/popup_redirect-d4c483cb.js.map +1 -0
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/esm2017/{index-4281edbd.js → index-cfd67c16.js} +40 -28
- package/dist/esm2017/index-cfd67c16.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/esm5/{index-d90af3d3.js → index-7b19354e.js} +52 -38
- package/dist/esm5/index-7b19354e.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/index.webworker.esm5.js +38 -28
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-311e8df9.js → index-ada66d12.js} +41 -31
- package/dist/node/index-ada66d12.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/node/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/node-esm/{index-3d1d600d.js → index-f2b163d5.js} +29 -21
- package/dist/node-esm/index-f2b163d5.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/rn/index.js +2 -2
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +3 -2
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-d30540d6.js → phone-a167292e.js} +50 -37
- package/dist/rn/phone-a167292e.js.map +1 -0
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/dist/src/platform_browser/recaptcha/recaptcha_loader.d.ts +5 -0
- package/dist/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +0 -4
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-dfd81338.js.map +0 -1
- package/dist/esm2017/index-4281edbd.js.map +0 -1
- package/dist/esm5/index-d90af3d3.js.map +0 -1
- package/dist/node/index-311e8df9.js.map +0 -1
- package/dist/node-esm/index-3d1d600d.js.map +0 -1
- package/dist/rn/phone-d30540d6.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
# @firebase/auth
|
|
2
2
|
|
|
3
|
-
## 0.20.5
|
|
3
|
+
## 0.20.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [`
|
|
7
|
+
- [`1261d8323`](https://github.com/firebase/firebase-js-sdk/commit/1261d832345ff4505391a150cb9c32719da37eb0) [#6421](https://github.com/firebase/firebase-js-sdk/pull/6421) (fixes [#6133](https://github.com/firebase/firebase-js-sdk/issues/6133)) - Fix a bug causing ReCAPTCHA conflicts between Auth and App Check.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- @firebase/
|
|
9
|
+
* [`8c52a96ed`](https://github.com/firebase/firebase-js-sdk/commit/8c52a96edac5b65501ee4eeb234c4bb8e70a5dd5) [#6379](https://github.com/firebase/firebase-js-sdk/pull/6379) (fixes [#6331](https://github.com/firebase/firebase-js-sdk/issues/6331)) - Update user agent detection to better detect iPad; fixes bug for some iPad devices running Cordova apps
|
|
10
|
+
|
|
11
|
+
* Updated dependencies [[`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf)]:
|
|
12
|
+
- @firebase/util@1.6.3
|
|
13
|
+
- @firebase/component@0.5.17
|
|
13
14
|
|
|
14
15
|
## 0.20.4
|
|
15
16
|
|
package/dist/auth-public.d.ts
CHANGED
|
@@ -2688,10 +2688,6 @@ export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
|
2688
2688
|
* 'invisible'.
|
|
2689
2689
|
*
|
|
2690
2690
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
2691
|
-
*
|
|
2692
|
-
* @remarks
|
|
2693
|
-
* If none is provided, the default Firebase {@link Auth} instance is used. A Firebase {@link Auth} instance
|
|
2694
|
-
* must be initialized with an API key, otherwise an error will be thrown.
|
|
2695
2691
|
*/
|
|
2696
2692
|
constructor(containerOrId: HTMLElement | string, parameters: RecaptchaParameters, authExtern: Auth);
|
|
2697
2693
|
/**
|
package/dist/auth.d.ts
CHANGED
|
@@ -3087,10 +3087,6 @@ export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
|
3087
3087
|
* 'invisible'.
|
|
3088
3088
|
*
|
|
3089
3089
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
3090
|
-
*
|
|
3091
|
-
* @remarks
|
|
3092
|
-
* If none is provided, the default Firebase {@link Auth} instance is used. A Firebase {@link Auth} instance
|
|
3093
|
-
* must be initialized with an API key, otherwise an error will be thrown.
|
|
3094
3090
|
*/
|
|
3095
3091
|
constructor(containerOrId: HTMLElement | string, parameters: RecaptchaParameters, authExtern: Auth);
|
|
3096
3092
|
/**
|
package/dist/cordova/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getApp, _getProvider } from '@firebase/app';
|
|
2
|
-
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-
|
|
3
|
-
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-
|
|
2
|
+
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-d4c483cb.js';
|
|
3
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-d4c483cb.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import '@firebase/util';
|
|
6
6
|
import '@firebase/component';
|
package/dist/cordova/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as _performApiRequest, ag as _addTidIfNecessary, ah as _createError, ai as _assert, aj as Delay, ak as _window, al as _isHttpOrHttps, am as _isWorker, an as _castAuth, J as signInWithCredential, ao as sendPhoneVerificationCode, ap as startEnrollPhoneMfa, K as linkWithCredential, aq as _assertLinkedStatus, L as reauthenticateWithCredential, ar as _link, x as PhoneAuthCredential, as as debugAssert, at as _generateEventId, au as AbstractPopupRedirectOperation, av as _assertInstanceOf, aw as _withDefaultResolver, ax as FederatedAuthProvider, ay as _fail, az as _getProjectConfig, aA as _getCurrentUrl, aB as _emulatorUrl, aC as _isChromeIOS, aD as _isFirefox, aE as _isIOSStandalone, aF as _isMobileBrowser, aG as _isSafari, aH as _isIOS, f as browserSessionPersistence, aI as _getRedirectResult, aJ as _overrideRedirectResult, aK as _getRedirectUrl, aL as _setWindowLocation, aM as AuthEventManager, aN as debugFail, aO as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-
|
|
2
|
-
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, aS as AuthImpl, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, aU as FetchProvider, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, aV as SAMLAuthCredential, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aQ as UserImpl, ai as _assert, an as _castAuth, ay as _fail, at as _generateEventId, aT as _getClientVersion, aR as _getInstance, aI as _getRedirectResult, aJ as _overrideRedirectResult, aP as _persistenceKeyName, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, aX as linkWithRedirect, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, aY as reauthenticateWithRedirect, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, aW as signInWithRedirect, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-
|
|
1
|
+
import { af as _performApiRequest, ag as _addTidIfNecessary, ah as _createError, ai as _assert, aj as Delay, ak as _window, al as _isHttpOrHttps, am as _isWorker, an as _castAuth, J as signInWithCredential, ao as sendPhoneVerificationCode, ap as startEnrollPhoneMfa, K as linkWithCredential, aq as _assertLinkedStatus, L as reauthenticateWithCredential, ar as _link, x as PhoneAuthCredential, as as debugAssert, at as _generateEventId, au as AbstractPopupRedirectOperation, av as _assertInstanceOf, aw as _withDefaultResolver, ax as FederatedAuthProvider, ay as _fail, az as _getProjectConfig, aA as _getCurrentUrl, aB as _emulatorUrl, aC as _isChromeIOS, aD as _isFirefox, aE as _isIOSStandalone, aF as _isMobileBrowser, aG as _isSafari, aH as _isIOS, f as browserSessionPersistence, aI as _getRedirectResult, aJ as _overrideRedirectResult, aK as _getRedirectUrl, aL as _setWindowLocation, aM as AuthEventManager, aN as debugFail, aO as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-d4c483cb.js';
|
|
2
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, aS as AuthImpl, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, aU as FetchProvider, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, aV as SAMLAuthCredential, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aQ as UserImpl, ai as _assert, an as _castAuth, ay as _fail, at as _generateEventId, aT as _getClientVersion, aR as _getInstance, aI as _getRedirectResult, aJ as _overrideRedirectResult, aP as _persistenceKeyName, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, aX as linkWithRedirect, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, aY as reauthenticateWithRedirect, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, aW as signInWithRedirect, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-d4c483cb.js';
|
|
3
3
|
import { __awaiter, __generator, __assign, __extends, __spreadArray } from 'tslib';
|
|
4
4
|
import { querystring, getModularInstance, getUA } from '@firebase/util';
|
|
5
5
|
import { SDK_VERSION, getApp, _getProvider } from '@firebase/app';
|
|
@@ -259,9 +259,15 @@ var RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?';
|
|
|
259
259
|
*/
|
|
260
260
|
var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
261
261
|
function ReCaptchaLoaderImpl() {
|
|
262
|
+
var _a;
|
|
262
263
|
this.hostLanguage = '';
|
|
263
264
|
this.counter = 0;
|
|
264
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Check for `render()` method. `window.grecaptcha` will exist if the Enterprise
|
|
267
|
+
* version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but
|
|
268
|
+
* `window.grecaptcha.render()` will not. Another load will add it.
|
|
269
|
+
*/
|
|
270
|
+
this.librarySeparatelyLoaded = !!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render);
|
|
265
271
|
}
|
|
266
272
|
ReCaptchaLoaderImpl.prototype.load = function (auth, hl) {
|
|
267
273
|
var _this = this;
|
|
@@ -308,6 +314,7 @@ var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
|
308
314
|
this.counter--;
|
|
309
315
|
};
|
|
310
316
|
ReCaptchaLoaderImpl.prototype.shouldResolveImmediately = function (hl) {
|
|
317
|
+
var _a;
|
|
311
318
|
// We can resolve immediately if:
|
|
312
319
|
// • grecaptcha is already defined AND (
|
|
313
320
|
// 1. the requested language codes are the same OR
|
|
@@ -315,7 +322,7 @@ var ReCaptchaLoaderImpl = /** @class */ (function () {
|
|
|
315
322
|
// 3. the library was already loaded by the app
|
|
316
323
|
// In cases (2) and (3), we _can't_ reload as it would break the recaptchas
|
|
317
324
|
// that are already in the page
|
|
318
|
-
return (!!_window().grecaptcha &&
|
|
325
|
+
return (!!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render) &&
|
|
319
326
|
(hl === this.hostLanguage ||
|
|
320
327
|
this.counter > 0 ||
|
|
321
328
|
this.librarySeparatelyLoaded));
|
|
@@ -385,10 +392,6 @@ var RecaptchaVerifier = /** @class */ (function () {
|
|
|
385
392
|
* 'invisible'.
|
|
386
393
|
*
|
|
387
394
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
388
|
-
*
|
|
389
|
-
* @remarks
|
|
390
|
-
* If none is provided, the default Firebase {@link Auth} instance is used. A Firebase {@link Auth} instance
|
|
391
|
-
* must be initialized with an API key, otherwise an error will be thrown.
|
|
392
395
|
*/
|
|
393
396
|
function RecaptchaVerifier(containerOrId, parameters, authExtern) {
|
|
394
397
|
if (parameters === void 0) { parameters = __assign({}, DEFAULT_PARAMS); }
|
|
@@ -1425,7 +1428,8 @@ function loadGapi(auth) {
|
|
|
1425
1428
|
}
|
|
1426
1429
|
};
|
|
1427
1430
|
// Load GApi loader.
|
|
1428
|
-
return _loadJS("https://apis.google.com/js/api.js?onload=" + cbName)
|
|
1431
|
+
return _loadJS("https://apis.google.com/js/api.js?onload=" + cbName)
|
|
1432
|
+
.catch(function (e) { return reject(e); });
|
|
1429
1433
|
}
|
|
1430
1434
|
}).catch(function (error) {
|
|
1431
1435
|
// Reset cached promise to allow for retrial.
|