@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/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-3646829a.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-3646829a.js';
|
|
2
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-3646829a.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -41,29 +41,29 @@ export interface StartPhoneMfaEnrollmentRequest {
|
|
|
41
41
|
phoneNumber: string;
|
|
42
42
|
recaptchaToken: string;
|
|
43
43
|
};
|
|
44
|
-
tenantId
|
|
44
|
+
tenantId?: string;
|
|
45
45
|
}
|
|
46
46
|
export interface StartPhoneMfaEnrollmentResponse {
|
|
47
47
|
phoneSessionInfo: {
|
|
48
48
|
sessionInfo: string;
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
export declare function startEnrollPhoneMfa(auth: AuthInternal, request:
|
|
51
|
+
export declare function startEnrollPhoneMfa(auth: AuthInternal, request: StartPhoneMfaEnrollmentRequest): Promise<StartPhoneMfaEnrollmentResponse>;
|
|
52
52
|
export interface FinalizePhoneMfaEnrollmentRequest {
|
|
53
53
|
idToken: string;
|
|
54
54
|
phoneVerificationInfo: SignInWithPhoneNumberRequest;
|
|
55
55
|
displayName?: string | null;
|
|
56
|
-
tenantId
|
|
56
|
+
tenantId?: string;
|
|
57
57
|
}
|
|
58
58
|
export interface FinalizePhoneMfaEnrollmentResponse extends FinalizeMfaResponse {
|
|
59
59
|
}
|
|
60
|
-
export declare function finalizeEnrollPhoneMfa(auth: AuthInternal, request:
|
|
60
|
+
export declare function finalizeEnrollPhoneMfa(auth: AuthInternal, request: FinalizePhoneMfaEnrollmentRequest): Promise<FinalizePhoneMfaEnrollmentResponse>;
|
|
61
61
|
export interface WithdrawMfaRequest {
|
|
62
62
|
idToken: string;
|
|
63
63
|
mfaEnrollmentId: string;
|
|
64
|
-
tenantId
|
|
64
|
+
tenantId?: string;
|
|
65
65
|
}
|
|
66
66
|
export interface WithdrawMfaResponse extends FinalizeMfaResponse {
|
|
67
67
|
}
|
|
68
|
-
export declare function withdrawMfa(auth: AuthInternal, request:
|
|
68
|
+
export declare function withdrawMfa(auth: AuthInternal, request: WithdrawMfaRequest): Promise<WithdrawMfaResponse>;
|
|
69
69
|
export {};
|
|
@@ -36,22 +36,22 @@ export interface StartPhoneMfaSignInRequest {
|
|
|
36
36
|
phoneSignInInfo: {
|
|
37
37
|
recaptchaToken: string;
|
|
38
38
|
};
|
|
39
|
-
tenantId
|
|
39
|
+
tenantId?: string;
|
|
40
40
|
}
|
|
41
41
|
export interface StartPhoneMfaSignInResponse {
|
|
42
42
|
phoneResponseInfo: {
|
|
43
43
|
sessionInfo: string;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export declare function startSignInPhoneMfa(auth: Auth, request:
|
|
46
|
+
export declare function startSignInPhoneMfa(auth: Auth, request: StartPhoneMfaSignInRequest): Promise<StartPhoneMfaSignInResponse>;
|
|
47
47
|
export interface FinalizePhoneMfaSignInRequest {
|
|
48
48
|
mfaPendingCredential: string;
|
|
49
49
|
phoneVerificationInfo: SignInWithPhoneNumberRequest;
|
|
50
|
-
tenantId
|
|
50
|
+
tenantId?: string;
|
|
51
51
|
}
|
|
52
52
|
export interface FinalizePhoneMfaSignInResponse extends FinalizeMfaResponse {
|
|
53
53
|
}
|
|
54
|
-
export declare function finalizeSignInPhoneMfa(auth: Auth, request:
|
|
54
|
+
export declare function finalizeSignInPhoneMfa(auth: Auth, request: FinalizePhoneMfaSignInRequest): Promise<FinalizePhoneMfaSignInResponse>;
|
|
55
55
|
/**
|
|
56
56
|
* @internal
|
|
57
57
|
*/
|
|
@@ -49,4 +49,8 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
49
49
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
50
50
|
*/
|
|
51
51
|
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;
|
|
52
|
+
/**
|
|
53
|
+
* The identifier of the phone second factor: `phone`.
|
|
54
|
+
*/
|
|
55
|
+
static FACTOR_ID: string;
|
|
52
56
|
}
|
|
@@ -26,9 +26,9 @@ declare function fail(): Promise<void>;
|
|
|
26
26
|
declare class FailClass {
|
|
27
27
|
constructor();
|
|
28
28
|
}
|
|
29
|
-
export declare const browserLocalPersistence: import("
|
|
30
|
-
export declare const browserSessionPersistence: import("
|
|
31
|
-
export declare const indexedDBLocalPersistence: import("
|
|
29
|
+
export declare const browserLocalPersistence: import("../model/public_types").Persistence;
|
|
30
|
+
export declare const browserSessionPersistence: import("../model/public_types").Persistence;
|
|
31
|
+
export declare const indexedDBLocalPersistence: import("../model/public_types").Persistence;
|
|
32
32
|
export declare const browserPopupRedirectResolver: import("@firebase/app").FirebaseError;
|
|
33
33
|
export declare const PhoneAuthProvider: typeof FailClass;
|
|
34
34
|
export declare const signInWithPhoneNumber: typeof fail;
|
|
@@ -1794,6 +1794,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1794
1794
|
this.accessToken = stsTokenManager.accessToken;
|
|
1795
1795
|
this.displayName = opt.displayName || null;
|
|
1796
1796
|
this.email = opt.email || null;
|
|
1797
|
+
this.emailVerified = opt.emailVerified || false;
|
|
1797
1798
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1798
1799
|
this.photoURL = opt.photoURL || null;
|
|
1799
1800
|
this.isAnonymous = opt.isAnonymous || false;
|
|
@@ -6704,13 +6705,13 @@ function getMultiFactorResolver(auth, error) {
|
|
|
6704
6705
|
* limitations under the License.
|
|
6705
6706
|
*/
|
|
6706
6707
|
function startEnrollPhoneMfa(auth, request) {
|
|
6707
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:start" /* START_PHONE_MFA_ENROLLMENT */,
|
|
6708
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:start" /* START_PHONE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));
|
|
6708
6709
|
}
|
|
6709
6710
|
function finalizeEnrollPhoneMfa(auth, request) {
|
|
6710
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:finalize" /* FINALIZE_PHONE_MFA_ENROLLMENT */,
|
|
6711
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:finalize" /* FINALIZE_PHONE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));
|
|
6711
6712
|
}
|
|
6712
6713
|
function withdrawMfa(auth, request) {
|
|
6713
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */,
|
|
6714
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */, _addTidIfNecessary(auth, request));
|
|
6714
6715
|
}
|
|
6715
6716
|
|
|
6716
6717
|
var MultiFactorUserImpl = /** @class */ (function () {
|
|
@@ -6923,6 +6924,7 @@ var BrowserLocalPersistence = /** @class */ (function (_super) {
|
|
|
6923
6924
|
__extends(BrowserLocalPersistence, _super);
|
|
6924
6925
|
function BrowserLocalPersistence() {
|
|
6925
6926
|
var _this = _super.call(this, window.localStorage, "LOCAL" /* LOCAL */) || this;
|
|
6927
|
+
_this.boundEventHandler = function (event, poll) { return _this.onStorageEvent(event, poll); };
|
|
6926
6928
|
_this.listeners = {};
|
|
6927
6929
|
_this.localCache = {};
|
|
6928
6930
|
// setTimeout return value is platform specific
|
|
@@ -6933,7 +6935,6 @@ var BrowserLocalPersistence = /** @class */ (function (_super) {
|
|
|
6933
6935
|
// Whether to use polling instead of depending on window events
|
|
6934
6936
|
_this.fallbackToPolling = _isMobileBrowser();
|
|
6935
6937
|
_this._shouldAllowMigration = true;
|
|
6936
|
-
_this.boundEventHandler = _this.onStorageEvent.bind(_this);
|
|
6937
6938
|
return _this;
|
|
6938
6939
|
}
|
|
6939
6940
|
BrowserLocalPersistence.prototype.forAllChangedKeys = function (cb) {
|
|
@@ -8108,10 +8109,10 @@ var indexedDBLocalPersistence = IndexedDBLocalPersistence;
|
|
|
8108
8109
|
* limitations under the License.
|
|
8109
8110
|
*/
|
|
8110
8111
|
function startSignInPhoneMfa(auth, request) {
|
|
8111
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */,
|
|
8112
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
8112
8113
|
}
|
|
8113
8114
|
function finalizeSignInPhoneMfa(auth, request) {
|
|
8114
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */,
|
|
8115
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
8115
8116
|
}
|
|
8116
8117
|
|
|
8117
8118
|
/**
|
|
@@ -10792,11 +10793,15 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
|
|
|
10792
10793
|
PhoneMultiFactorGenerator.assertion = function (credential) {
|
|
10793
10794
|
return PhoneMultiFactorAssertionImpl._fromCredential(credential);
|
|
10794
10795
|
};
|
|
10796
|
+
/**
|
|
10797
|
+
* The identifier of the phone second factor: `phone`.
|
|
10798
|
+
*/
|
|
10799
|
+
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
10795
10800
|
return PhoneMultiFactorGenerator;
|
|
10796
10801
|
}());
|
|
10797
10802
|
|
|
10798
10803
|
var name = "@firebase/auth";
|
|
10799
|
-
var version = "0.17.2-canary.
|
|
10804
|
+
var version = "0.17.2-canary.dfe65ff9b";
|
|
10800
10805
|
|
|
10801
10806
|
/**
|
|
10802
10807
|
* @license
|
|
@@ -10999,4 +11004,4 @@ function getAuth(app) {
|
|
|
10999
11004
|
registerAuth("Browser" /* BROWSER */);
|
|
11000
11005
|
|
|
11001
11006
|
export { sendPasswordResetEmail as $, ActionCodeOperation as A, prodErrorMap as B, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as C, initializeAuth as D, connectAuthEmulator as E, FactorId as F, AuthCredential as G, EmailAuthCredential as H, OAuthCredential as I, PhoneAuthCredential as J, inMemoryPersistence as K, EmailAuthProvider as L, FacebookAuthProvider as M, GoogleAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GithubAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, OAuthProvider as T, SAMLAuthProvider as U, TwitterAuthProvider as V, signInAnonymously as W, signInWithCredential as X, linkWithCredential as Y, reauthenticateWithCredential as Z, signInWithCustomToken as _, browserSessionPersistence as a, confirmPasswordReset as a0, applyActionCode as a1, checkActionCode as a2, verifyPasswordResetCode as a3, createUserWithEmailAndPassword as a4, signInWithEmailAndPassword as a5, sendSignInLinkToEmail as a6, isSignInWithEmailLink as a7, signInWithEmailLink as a8, fetchSignInMethodsForEmail as a9, _clearRedirectOutcomes as aA, _getRedirectResult as aB, _castAuth as aC, UserImpl as aD, AuthImpl as aE, _getClientVersion as aF, _generateEventId as aG, AuthPopup as aH, FetchProvider as aI, SAMLAuthCredential as aJ, sendEmailVerification as aa, verifyBeforeUpdateEmail as ab, ActionCodeURL as ac, parseActionCodeURL as ad, updateProfile as ae, updateEmail as af, updatePassword as ag, getIdToken as ah, getIdTokenResult as ai, unlink as aj, getAdditionalUserInfo as ak, reload as al, getMultiFactorResolver as am, multiFactor as an, _isAndroid as ao, _isIOS7Or8 as ap, _isIOS as aq, _fail as ar, _getRedirectUrl as as, debugAssert as at, _getProjectConfig as au, _createError as av, _assert as aw, AuthEventManager 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, onAuthStateChanged as t, updatePhoneNumber as u, useDeviceLanguage as v, updateCurrentUser as w, signOut as x, deleteUser as y, debugErrorMap as z };
|
|
11002
|
-
//# sourceMappingURL=index-
|
|
11007
|
+
//# sourceMappingURL=index-ae557732.js.map
|