@firebase/auth 0.19.6 → 0.19.7-canary.aaeab08ac
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/CHANGELOG.md +12 -0
- 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-0a21dcc2.js → popup_redirect-a3eeb4b5.js} +10 -13
- package/dist/cordova/popup_redirect-a3eeb4b5.js.map +1 -0
- package/dist/cordova/src/mfa/mfa_info.d.ts +3 -3
- package/dist/cordova/src/model/public_types.d.ts +8 -0
- package/dist/cordova/src/model/user.d.ts +1 -0
- package/dist/esm2017/{index-bc414788.js → index-86cc5550.js} +6 -9
- package/dist/esm2017/index-86cc5550.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/esm2017/src/model/user.d.ts +1 -0
- package/dist/esm5/{index-fb0ec9ba.js → index-69838253.js} +10 -13
- package/dist/esm5/index-69838253.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/esm5/src/model/user.d.ts +1 -0
- package/dist/index.webworker.esm5.js +9 -12
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-45556172.js → index-96ce8174.js} +10 -13
- package/dist/node/index-96ce8174.js.map +1 -0
- 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/src/model/user.d.ts +1 -0
- package/dist/node-esm/{index-c4fe16cb.js → index-4823ced0.js} +6 -9
- package/dist/node-esm/index-4823ced0.js.map +1 -0
- 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/node-esm/src/model/user.d.ts +1 -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-3071a546.js → phone-3f038c53.js} +10 -13
- package/dist/rn/phone-3f038c53.js.map +1 -0
- package/dist/rn/src/mfa/mfa_info.d.ts +3 -3
- package/dist/rn/src/model/public_types.d.ts +8 -0
- package/dist/rn/src/model/user.d.ts +1 -0
- package/dist/src/mfa/mfa_info.d.ts +3 -3
- package/dist/src/model/public_types.d.ts +8 -0
- package/dist/src/model/user.d.ts +1 -0
- package/package.json +7 -7
- package/dist/cordova/popup_redirect-0a21dcc2.js.map +0 -1
- package/dist/esm2017/index-bc414788.js.map +0 -1
- package/dist/esm5/index-fb0ec9ba.js.map +0 -1
- package/dist/node/index-45556172.js.map +0 -1
- package/dist/node-esm/index-c4fe16cb.js.map +0 -1
- package/dist/rn/phone-3071a546.js.map +0 -1
package/dist/node/index.js
CHANGED
package/dist/node/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-96ce8174.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@firebase/app');
|
|
@@ -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.
|
|
@@ -1590,10 +1590,6 @@ class UserImpl {
|
|
|
1590
1590
|
var { uid, auth, stsTokenManager } = _a, opt = __rest(_a, ["uid", "auth", "stsTokenManager"]);
|
|
1591
1591
|
// For the user object, provider is always Firebase.
|
|
1592
1592
|
this.providerId = "firebase" /* FIREBASE */;
|
|
1593
|
-
this.emailVerified = false;
|
|
1594
|
-
this.isAnonymous = false;
|
|
1595
|
-
this.tenantId = null;
|
|
1596
|
-
this.providerData = [];
|
|
1597
1593
|
this.proactiveRefresh = new ProactiveRefresh(this);
|
|
1598
1594
|
this.reloadUserInfo = null;
|
|
1599
1595
|
this.reloadListener = null;
|
|
@@ -1608,6 +1604,7 @@ class UserImpl {
|
|
|
1608
1604
|
this.photoURL = opt.photoURL || null;
|
|
1609
1605
|
this.isAnonymous = opt.isAnonymous || false;
|
|
1610
1606
|
this.tenantId = opt.tenantId || null;
|
|
1607
|
+
this.providerData = opt.providerData ? [...opt.providerData] : [];
|
|
1611
1608
|
this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
|
|
1612
1609
|
}
|
|
1613
1610
|
async getIdToken(forceRefresh) {
|
|
@@ -4712,18 +4709,18 @@ class MultiFactorInfoImpl {
|
|
|
4712
4709
|
}
|
|
4713
4710
|
static _fromServerResponse(auth, enrollment) {
|
|
4714
4711
|
if ('phoneInfo' in enrollment) {
|
|
4715
|
-
return
|
|
4712
|
+
return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);
|
|
4716
4713
|
}
|
|
4717
4714
|
return _fail(auth, "internal-error" /* INTERNAL_ERROR */);
|
|
4718
4715
|
}
|
|
4719
4716
|
}
|
|
4720
|
-
class
|
|
4717
|
+
class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl {
|
|
4721
4718
|
constructor(response) {
|
|
4722
4719
|
super("phone" /* PHONE */, response);
|
|
4723
4720
|
this.phoneNumber = response.phoneInfo;
|
|
4724
4721
|
}
|
|
4725
4722
|
static _fromServerResponse(_auth, enrollment) {
|
|
4726
|
-
return new
|
|
4723
|
+
return new PhoneMultiFactorInfoImpl(enrollment);
|
|
4727
4724
|
}
|
|
4728
4725
|
}
|
|
4729
4726
|
|
|
@@ -5811,7 +5808,7 @@ function multiFactor(user) {
|
|
|
5811
5808
|
}
|
|
5812
5809
|
|
|
5813
5810
|
var name = "@firebase/auth";
|
|
5814
|
-
var version = "0.19.
|
|
5811
|
+
var version = "0.19.7-canary.aaeab08ac";
|
|
5815
5812
|
|
|
5816
5813
|
/**
|
|
5817
5814
|
* @license
|
|
@@ -6037,4 +6034,4 @@ class PhoneMultiFactorGenerator {
|
|
|
6037
6034
|
AuthImpl.prototype.setPersistence = async () => { };
|
|
6038
6035
|
|
|
6039
6036
|
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, _emulatorUrl as aA, _performApiRequest as aB, _isIOS7Or8 as aC, _isIOS as aD, _isAndroid as aE, _createError as aF, _isSafari as aG, _isIframe as aH, _isMobileBrowser as aI, _isIE10 as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, FetchProvider as aN, SAMLAuthCredential as aO, 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, _getInstance as ao, _assert as ap, _signInWithCredential as aq, _reauthenticate as ar, _link as as, signInWithIdp as at, _fail as au, debugAssert as av, _persistenceKeyName as aw, _castAuth as ax, FederatedAuthProvider as ay, BaseOAuthProvider 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 };
|
|
6040
|
-
//# sourceMappingURL=index-
|
|
6037
|
+
//# sourceMappingURL=index-4823ced0.js.map
|