@firebase/auth 0.17.2-canary.d164cb905 → 0.17.2-canary.dfe65ff9b
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/dist/auth-public.d.ts +4 -0
- package/dist/auth.d.ts +4 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +9 -5
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-73533f38.js → popup_redirect-8e43b92f.js} +8 -7
- package/dist/cordova/popup_redirect-8e43b92f.js.map +1 -0
- package/dist/cordova/src/api/account_management/mfa.d.ts +6 -6
- package/dist/cordova/src/api/authentication/mfa.d.ts +4 -4
- package/dist/cordova/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/cordova/src/platform_node/index.d.ts +3 -3
- package/dist/esm2017/{index-d0284254.js → index-3646829a.js} +14 -9
- package/dist/esm2017/index-3646829a.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/api/account_management/mfa.d.ts +6 -6
- package/dist/esm2017/src/api/authentication/mfa.d.ts +4 -4
- package/dist/esm2017/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/esm2017/src/platform_node/index.d.ts +3 -3
- package/dist/esm5/{index-15512aa1.js → index-ae557732.js} +13 -8
- package/dist/esm5/index-ae557732.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/api/account_management/mfa.d.ts +6 -6
- package/dist/esm5/src/api/authentication/mfa.d.ts +4 -4
- package/dist/esm5/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/esm5/src/platform_node/index.d.ts +3 -3
- package/dist/index.webworker.esm5.js +3 -2
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-f4841d0f.js → index-7b0c9d70.js} +7 -6
- package/dist/node/index-7b0c9d70.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +2 -2
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/api/account_management/mfa.d.ts +6 -6
- package/dist/node/src/api/authentication/mfa.d.ts +4 -4
- package/dist/node/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/node/src/platform_node/index.d.ts +3 -3
- package/dist/rn/{enum_maps-c323987b.js → enum_maps-413f8f5a.js} +7 -5
- package/dist/rn/enum_maps-413f8f5a.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +8 -4
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/api/account_management/mfa.d.ts +6 -6
- package/dist/rn/src/api/authentication/mfa.d.ts +4 -4
- package/dist/rn/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/rn/src/platform_node/index.d.ts +3 -3
- package/dist/src/api/account_management/mfa.d.ts +6 -6
- package/dist/src/api/authentication/mfa.d.ts +4 -4
- package/dist/src/platform_browser/mfa/assertions/phone.d.ts +4 -0
- package/dist/src/platform_node/index.d.ts +3 -3
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-73533f38.js.map +0 -1
- package/dist/esm2017/index-d0284254.js.map +0 -1
- package/dist/esm5/index-15512aa1.js.map +0 -1
- package/dist/node/index-f4841d0f.js.map +0 -1
- package/dist/rn/enum_maps-c323987b.js.map +0 -1
package/dist/auth-public.d.ts
CHANGED
|
@@ -2371,6 +2371,10 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
2371
2371
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
2372
2372
|
*/
|
|
2373
2373
|
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;
|
|
2374
|
+
/**
|
|
2375
|
+
* The identifier of the phone second factor: `phone`.
|
|
2376
|
+
*/
|
|
2377
|
+
static FACTOR_ID: string;
|
|
2374
2378
|
}
|
|
2375
2379
|
|
|
2376
2380
|
/**
|
package/dist/auth.d.ts
CHANGED
|
@@ -2697,6 +2697,10 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
2697
2697
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
2698
2698
|
*/
|
|
2699
2699
|
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;
|
|
2700
|
+
/**
|
|
2701
|
+
* The identifier of the phone second factor: `phone`.
|
|
2702
|
+
*/
|
|
2703
|
+
static FACTOR_ID: string;
|
|
2700
2704
|
}
|
|
2701
2705
|
|
|
2702
2706
|
/**
|
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, a2 as ActionCodeURL, t as AuthCredential, n as AuthErrorCodes, E as EmailAuthCredential, y as EmailAuthProvider, z as FacebookAuthProvider, F as FactorId, B as GithubAuthProvider, G as GoogleAuthProvider, v as OAuthCredential, C as OAuthProvider, O as OperationType, w as PhoneAuthCredential, P as ProviderId, D as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, Q as applyActionCode, e as browserLocalPersistence, f as browserSessionPersistence, R as checkActionCode, N as confirmPasswordReset, q as connectAuthEmulator, d as cordovaPopupRedirectResolver, V as createUserWithEmailAndPassword, m as debugErrorMap, l as deleteUser, $ as fetchSignInMethodsForEmail, aa as getAdditionalUserInfo, a7 as getIdToken, a8 as getIdTokenResult, ac as getMultiFactorResolver, g as getRedirectResult, x as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Y as isSignInWithEmailLink, J as linkWithCredential, ad as multiFactor, h as onAuthStateChanged, o as onIdTokenChanged, a3 as parseActionCodeURL, p as prodErrorMap, K as reauthenticateWithCredential, ab as reload, a0 as sendEmailVerification, M as sendPasswordResetEmail, X as sendSignInLinkToEmail, s as setPersistence, H as signInAnonymously, I as signInWithCredential, L as signInWithCustomToken, W as signInWithEmailAndPassword, Z as signInWithEmailLink, k as signOut, a9 as unlink, j as updateCurrentUser, a5 as updateEmail, a6 as updatePassword, a4 as updateProfile, u as useDeviceLanguage, a1 as verifyBeforeUpdateEmail, U 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-8e43b92f.js';
|
|
3
|
+
export { A as ActionCodeOperation, a2 as ActionCodeURL, t as AuthCredential, n as AuthErrorCodes, E as EmailAuthCredential, y as EmailAuthProvider, z as FacebookAuthProvider, F as FactorId, B as GithubAuthProvider, G as GoogleAuthProvider, v as OAuthCredential, C as OAuthProvider, O as OperationType, w as PhoneAuthCredential, P as ProviderId, D as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, Q as applyActionCode, e as browserLocalPersistence, f as browserSessionPersistence, R as checkActionCode, N as confirmPasswordReset, q as connectAuthEmulator, d as cordovaPopupRedirectResolver, V as createUserWithEmailAndPassword, m as debugErrorMap, l as deleteUser, $ as fetchSignInMethodsForEmail, aa as getAdditionalUserInfo, a7 as getIdToken, a8 as getIdTokenResult, ac as getMultiFactorResolver, g as getRedirectResult, x as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Y as isSignInWithEmailLink, J as linkWithCredential, ad as multiFactor, h as onAuthStateChanged, o as onIdTokenChanged, a3 as parseActionCodeURL, p as prodErrorMap, K as reauthenticateWithCredential, ab as reload, a0 as sendEmailVerification, M as sendPasswordResetEmail, X as sendSignInLinkToEmail, s as setPersistence, H as signInAnonymously, I as signInWithCredential, L as signInWithCustomToken, W as signInWithEmailAndPassword, Z as signInWithEmailLink, k as signOut, a9 as unlink, j as updateCurrentUser, a5 as updateEmail, a6 as updatePassword, a4 as updateProfile, u as useDeviceLanguage, a1 as verifyBeforeUpdateEmail, U as verifyPasswordResetCode } from './popup_redirect-8e43b92f.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import '@firebase/util';
|
|
6
6
|
import '@firebase/component';
|
package/dist/cordova/internal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ae as _performApiRequest, af as
|
|
2
|
-
export { A as ActionCodeOperation, a2 as ActionCodeURL, t as AuthCredential, n as AuthErrorCodes,
|
|
3
|
-
import {
|
|
1
|
+
import { ae as _performApiRequest, af as _addTidIfNecessary, ag as _createError, ah as _assert, ai as Delay, aj as _window, ak as _isHttpOrHttps, al as _isWorker, am as _castAuth, I as signInWithCredential, an as sendPhoneVerificationCode, ao as startEnrollPhoneMfa, J as linkWithCredential, ap as _assertLinkedStatus, K as reauthenticateWithCredential, aq as _link, w as PhoneAuthCredential, ar as debugAssert, as as _generateEventId, at as AbstractPopupRedirectOperation, au as _assertInstanceOf, av as _withDefaultResolver, aw as FederatedAuthProvider, ax as _fail, ay as _getProjectConfig, az as _getCurrentUrl, aA as _emulatorUrl, aB as _isChromeIOS, aC as _isFirefox, aD as _isIOSStandalone, aE as _isMobileBrowser, aF as _isSafari, aG as _isIOS, f as browserSessionPersistence, aH as _getRedirectResult, aI as _getRedirectUrl, aJ as _setWindowLocation, aK as AuthEventManager, aL as debugFail, aM as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-8e43b92f.js';
|
|
2
|
+
export { A as ActionCodeOperation, a2 as ActionCodeURL, t as AuthCredential, n as AuthErrorCodes, aQ as AuthImpl, E as EmailAuthCredential, y as EmailAuthProvider, z as FacebookAuthProvider, F as FactorId, aS as FetchProvider, B as GithubAuthProvider, G as GoogleAuthProvider, v as OAuthCredential, C as OAuthProvider, O as OperationType, w as PhoneAuthCredential, P as ProviderId, aT as SAMLAuthCredential, D as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aO as UserImpl, ah as _assert, am as _castAuth, ax as _fail, as as _generateEventId, aR as _getClientVersion, aP as _getInstance, aH as _getRedirectResult, aN as _persistenceKeyName, Q as applyActionCode, e as browserLocalPersistence, f as browserSessionPersistence, R as checkActionCode, N as confirmPasswordReset, q as connectAuthEmulator, d as cordovaPopupRedirectResolver, V as createUserWithEmailAndPassword, m as debugErrorMap, l as deleteUser, $ as fetchSignInMethodsForEmail, aa as getAdditionalUserInfo, a7 as getIdToken, a8 as getIdTokenResult, ac as getMultiFactorResolver, g as getRedirectResult, x as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Y as isSignInWithEmailLink, J as linkWithCredential, aV as linkWithRedirect, ad as multiFactor, h as onAuthStateChanged, o as onIdTokenChanged, a3 as parseActionCodeURL, p as prodErrorMap, K as reauthenticateWithCredential, aW as reauthenticateWithRedirect, ab as reload, a0 as sendEmailVerification, M as sendPasswordResetEmail, X as sendSignInLinkToEmail, s as setPersistence, H as signInAnonymously, I as signInWithCredential, L as signInWithCustomToken, W as signInWithEmailAndPassword, Z as signInWithEmailLink, aU as signInWithRedirect, k as signOut, a9 as unlink, j as updateCurrentUser, a5 as updateEmail, a6 as updatePassword, a4 as updateProfile, u as useDeviceLanguage, a1 as verifyBeforeUpdateEmail, U as verifyPasswordResetCode } from './popup_redirect-8e43b92f.js';
|
|
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';
|
|
6
6
|
import '@firebase/component';
|
|
@@ -23,10 +23,10 @@ import '@firebase/logger';
|
|
|
23
23
|
* limitations under the License.
|
|
24
24
|
*/
|
|
25
25
|
function startSignInPhoneMfa(auth, request) {
|
|
26
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */,
|
|
26
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
27
27
|
}
|
|
28
28
|
function finalizeSignInPhoneMfa(auth, request) {
|
|
29
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */,
|
|
29
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -1830,6 +1830,10 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
|
|
|
1830
1830
|
PhoneMultiFactorGenerator.assertion = function (credential) {
|
|
1831
1831
|
return PhoneMultiFactorAssertionImpl._fromCredential(credential);
|
|
1832
1832
|
};
|
|
1833
|
+
/**
|
|
1834
|
+
* The identifier of the phone second factor: `phone`.
|
|
1835
|
+
*/
|
|
1836
|
+
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
1833
1837
|
return PhoneMultiFactorGenerator;
|
|
1834
1838
|
}());
|
|
1835
1839
|
|