@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
|
@@ -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;
|
|
@@ -1614,6 +1614,7 @@ class UserImpl {
|
|
|
1614
1614
|
this.accessToken = stsTokenManager.accessToken;
|
|
1615
1615
|
this.displayName = opt.displayName || null;
|
|
1616
1616
|
this.email = opt.email || null;
|
|
1617
|
+
this.emailVerified = opt.emailVerified || false;
|
|
1617
1618
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1618
1619
|
this.photoURL = opt.photoURL || null;
|
|
1619
1620
|
this.isAnonymous = opt.isAnonymous || false;
|
|
@@ -5734,13 +5735,13 @@ function getMultiFactorResolver(auth, error) {
|
|
|
5734
5735
|
* limitations under the License.
|
|
5735
5736
|
*/
|
|
5736
5737
|
function startEnrollPhoneMfa(auth, request) {
|
|
5737
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:start" /* START_PHONE_MFA_ENROLLMENT */,
|
|
5738
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:start" /* START_PHONE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));
|
|
5738
5739
|
}
|
|
5739
5740
|
function finalizeEnrollPhoneMfa(auth, request) {
|
|
5740
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:finalize" /* FINALIZE_PHONE_MFA_ENROLLMENT */,
|
|
5741
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:finalize" /* FINALIZE_PHONE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));
|
|
5741
5742
|
}
|
|
5742
5743
|
function withdrawMfa(auth, request) {
|
|
5743
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */,
|
|
5744
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaEnrollment:withdraw" /* WITHDRAW_MFA */, _addTidIfNecessary(auth, request));
|
|
5744
5745
|
}
|
|
5745
5746
|
|
|
5746
5747
|
class MultiFactorUserImpl {
|
|
@@ -5894,6 +5895,7 @@ const IE10_LOCAL_STORAGE_SYNC_DELAY = 10;
|
|
|
5894
5895
|
class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
5895
5896
|
constructor() {
|
|
5896
5897
|
super(window.localStorage, "LOCAL" /* LOCAL */);
|
|
5898
|
+
this.boundEventHandler = (event, poll) => this.onStorageEvent(event, poll);
|
|
5897
5899
|
this.listeners = {};
|
|
5898
5900
|
this.localCache = {};
|
|
5899
5901
|
// setTimeout return value is platform specific
|
|
@@ -5904,7 +5906,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
5904
5906
|
// Whether to use polling instead of depending on window events
|
|
5905
5907
|
this.fallbackToPolling = _isMobileBrowser();
|
|
5906
5908
|
this._shouldAllowMigration = true;
|
|
5907
|
-
this.boundEventHandler = this.onStorageEvent.bind(this);
|
|
5908
5909
|
}
|
|
5909
5910
|
forAllChangedKeys(cb) {
|
|
5910
5911
|
// Check all keys with listeners on them.
|
|
@@ -6829,10 +6830,10 @@ const indexedDBLocalPersistence = IndexedDBLocalPersistence;
|
|
|
6829
6830
|
* limitations under the License.
|
|
6830
6831
|
*/
|
|
6831
6832
|
function startSignInPhoneMfa(auth, request) {
|
|
6832
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */,
|
|
6833
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:start" /* START_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
6833
6834
|
}
|
|
6834
6835
|
function finalizeSignInPhoneMfa(auth, request) {
|
|
6835
|
-
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */,
|
|
6836
|
+
return _performApiRequest(auth, "POST" /* POST */, "/v2/accounts/mfaSignIn:finalize" /* FINALIZE_PHONE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));
|
|
6836
6837
|
}
|
|
6837
6838
|
|
|
6838
6839
|
/**
|
|
@@ -9089,10 +9090,14 @@ class PhoneMultiFactorGenerator {
|
|
|
9089
9090
|
static assertion(credential) {
|
|
9090
9091
|
return PhoneMultiFactorAssertionImpl._fromCredential(credential);
|
|
9091
9092
|
}
|
|
9092
|
-
}
|
|
9093
|
+
}
|
|
9094
|
+
/**
|
|
9095
|
+
* The identifier of the phone second factor: `phone`.
|
|
9096
|
+
*/
|
|
9097
|
+
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
9093
9098
|
|
|
9094
9099
|
var name = "@firebase/auth";
|
|
9095
|
-
var version = "0.17.2-canary.
|
|
9100
|
+
var version = "0.17.2-canary.dfe65ff9b";
|
|
9096
9101
|
|
|
9097
9102
|
/**
|
|
9098
9103
|
* @license
|
|
@@ -9280,4 +9285,4 @@ function getAuth(app = getApp()) {
|
|
|
9280
9285
|
registerAuth("Browser" /* BROWSER */);
|
|
9281
9286
|
|
|
9282
9287
|
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, _getRedirectResult as aA, _clearRedirectOutcomes 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, _isIOS7Or8 as ao, debugAssert as ap, _isIOS as aq, _isAndroid as ar, _fail as as, _getRedirectUrl as at, _getProjectConfig as au, _createError as av, _assert as aw, _getInstance as ax, _persistenceKeyName as ay, AuthEventManager 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 };
|
|
9283
|
-
//# sourceMappingURL=index-
|
|
9288
|
+
//# sourceMappingURL=index-3646829a.js.map
|