@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/esm5/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-ae557732.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
package/dist/esm5/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, 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, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az 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 _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-ae557732.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, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az 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-ae557732.js';
|
|
3
3
|
import { __awaiter, __generator, __extends } from 'tslib';
|
|
4
4
|
import { querystringDecode } from '@firebase/util';
|
|
5
5
|
import '@firebase/app';
|
|
@@ -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;
|
|
@@ -522,7 +522,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
var name = "@firebase/auth";
|
|
525
|
-
var version = "0.17.2-canary.
|
|
525
|
+
var version = "0.17.2-canary.dfe65ff9b";
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* @license
|
|
@@ -1833,6 +1833,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1833
1833
|
this.accessToken = stsTokenManager.accessToken;
|
|
1834
1834
|
this.displayName = opt.displayName || null;
|
|
1835
1835
|
this.email = opt.email || null;
|
|
1836
|
+
this.emailVerified = opt.emailVerified || false;
|
|
1836
1837
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1837
1838
|
this.photoURL = opt.photoURL || null;
|
|
1838
1839
|
this.isAnonymous = opt.isAnonymous || false;
|
|
@@ -7723,7 +7724,7 @@ function getMultiFactorResolver(auth, error) {
|
|
|
7723
7724
|
* limitations under the License.
|
|
7724
7725
|
*/
|
|
7725
7726
|
function withdrawMfa(auth, request) {
|
|
7726
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */,
|
|
7727
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */, _addTidIfNecessary(auth, request));
|
|
7727
7728
|
}
|
|
7728
7729
|
|
|
7729
7730
|
var MultiFactorUserImpl = /** @class */ (function () {
|