@firebase/auth 0.19.6-canary.2d04af91d → 0.19.6-canary.e80d18d65
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 +9 -0
- package/dist/auth.d.ts +9 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-3e5e11cb.js → popup_redirect-e546218b.js} +9 -9
- package/dist/cordova/{popup_redirect-3e5e11cb.js.map → popup_redirect-e546218b.js.map} +1 -1
- package/dist/cordova/src/mfa/mfa_info.d.ts +3 -3
- package/dist/cordova/src/model/public_types.d.ts +8 -0
- package/dist/esm2017/{index-041ee40f.js → index-e6741774.js} +5 -5
- package/dist/esm2017/index-e6741774.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/mfa/mfa_info.d.ts +3 -3
- package/dist/esm2017/src/model/public_types.d.ts +8 -0
- package/dist/esm5/{index-a2439b36.js → index-521a467e.js} +9 -9
- package/dist/esm5/index-521a467e.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/mfa/mfa_info.d.ts +3 -3
- package/dist/esm5/src/model/public_types.d.ts +8 -0
- package/dist/index.webworker.esm5.js +8 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-3038f4ed.js → index-9507568b.js} +9 -9
- package/dist/node/{index-3038f4ed.js.map → index-9507568b.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/mfa/mfa_info.d.ts +3 -3
- package/dist/node/src/model/public_types.d.ts +8 -0
- package/dist/node-esm/{index-8ab5f1e2.js → index-df9b2c32.js} +5 -5
- package/dist/node-esm/{index-8ab5f1e2.js.map → index-df9b2c32.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/mfa/mfa_info.d.ts +3 -3
- package/dist/node-esm/src/model/public_types.d.ts +8 -0
- package/dist/rn/index.js +51 -3
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-598a194c.js → phone-ad405372.js} +9 -9
- package/dist/rn/{phone-598a194c.js.map → phone-ad405372.js.map} +1 -1
- package/dist/rn/src/mfa/mfa_info.d.ts +3 -3
- package/dist/rn/src/model/public_types.d.ts +8 -0
- package/dist/src/mfa/mfa_info.d.ts +3 -3
- package/dist/src/model/public_types.d.ts +8 -0
- package/package.json +6 -6
- package/dist/esm2017/index-041ee40f.js.map +0 -1
- package/dist/esm5/index-a2439b36.js.map +0 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { FactorId, MultiFactorInfo } from '../model/public_types';
|
|
17
|
+
import { FactorId, MultiFactorInfo, PhoneMultiFactorInfo } from '../model/public_types';
|
|
18
18
|
import { MfaEnrollment } from '../api/account_management/mfa';
|
|
19
19
|
import { AuthInternal } from '../model/auth';
|
|
20
20
|
export declare abstract class MultiFactorInfoImpl implements MultiFactorInfo {
|
|
@@ -25,8 +25,8 @@ export declare abstract class MultiFactorInfoImpl implements MultiFactorInfo {
|
|
|
25
25
|
protected constructor(factorId: FactorId, response: MfaEnrollment);
|
|
26
26
|
static _fromServerResponse(auth: AuthInternal, enrollment: MfaEnrollment): MultiFactorInfoImpl;
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
28
|
+
export declare class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl implements PhoneMultiFactorInfo {
|
|
29
29
|
readonly phoneNumber: string;
|
|
30
30
|
private constructor();
|
|
31
|
-
static _fromServerResponse(_auth: AuthInternal, enrollment: MfaEnrollment):
|
|
31
|
+
static _fromServerResponse(_auth: AuthInternal, enrollment: MfaEnrollment): PhoneMultiFactorInfoImpl;
|
|
32
32
|
}
|
|
@@ -585,6 +585,14 @@ export interface MultiFactorInfo {
|
|
|
585
585
|
/** The identifier of the second factor. */
|
|
586
586
|
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
|
|
587
587
|
}
|
|
588
|
+
/**
|
|
589
|
+
* The subclass of the {@link MultiFactorInfo} interface for phone number
|
|
590
|
+
* second factors. The factorId of this second factor is {@link FactorId.PHONE}.
|
|
591
|
+
*/
|
|
592
|
+
export interface PhoneMultiFactorInfo extends MultiFactorInfo {
|
|
593
|
+
/** The phone number associated with the current second factor. */
|
|
594
|
+
readonly phoneNumber: string;
|
|
595
|
+
}
|
|
588
596
|
/**
|
|
589
597
|
* The class used to facilitate recovery from {@link MultiFactorError} when a user needs to
|
|
590
598
|
* provide a second factor to sign in.
|
|
@@ -4728,18 +4728,18 @@ class MultiFactorInfoImpl {
|
|
|
4728
4728
|
}
|
|
4729
4729
|
static _fromServerResponse(auth, enrollment) {
|
|
4730
4730
|
if ('phoneInfo' in enrollment) {
|
|
4731
|
-
return
|
|
4731
|
+
return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);
|
|
4732
4732
|
}
|
|
4733
4733
|
return _fail(auth, "internal-error" /* INTERNAL_ERROR */);
|
|
4734
4734
|
}
|
|
4735
4735
|
}
|
|
4736
|
-
class
|
|
4736
|
+
class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl {
|
|
4737
4737
|
constructor(response) {
|
|
4738
4738
|
super("phone" /* PHONE */, response);
|
|
4739
4739
|
this.phoneNumber = response.phoneInfo;
|
|
4740
4740
|
}
|
|
4741
4741
|
static _fromServerResponse(_auth, enrollment) {
|
|
4742
|
-
return new
|
|
4742
|
+
return new PhoneMultiFactorInfoImpl(enrollment);
|
|
4743
4743
|
}
|
|
4744
4744
|
}
|
|
4745
4745
|
|
|
@@ -9136,7 +9136,7 @@ class PhoneMultiFactorGenerator {
|
|
|
9136
9136
|
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
9137
9137
|
|
|
9138
9138
|
var name = "@firebase/auth";
|
|
9139
|
-
var version = "0.19.6-canary.
|
|
9139
|
+
var version = "0.19.6-canary.e80d18d65";
|
|
9140
9140
|
|
|
9141
9141
|
/**
|
|
9142
9142
|
* @license
|
|
@@ -9326,4 +9326,4 @@ function getAuth(app = getApp()) {
|
|
|
9326
9326
|
registerAuth("Browser" /* BROWSER */);
|
|
9327
9327
|
|
|
9328
9328
|
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 };
|
|
9329
|
-
//# sourceMappingURL=index-
|
|
9329
|
+
//# sourceMappingURL=index-e6741774.js.map
|