@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/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-69838253.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-69838253.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-69838253.js';
|
|
3
3
|
import { __awaiter, __generator, __extends } from 'tslib';
|
|
4
4
|
import { querystringDecode } from '@firebase/util';
|
|
5
5
|
import '@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.
|
|
@@ -522,7 +522,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
var name = "@firebase/auth";
|
|
525
|
-
var version = "0.19.
|
|
525
|
+
var version = "0.19.7-canary.aaeab08ac";
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* @license
|
|
@@ -1836,10 +1836,6 @@ var UserImpl = /** @class */ (function () {
|
|
|
1836
1836
|
var uid = _a.uid, auth = _a.auth, stsTokenManager = _a.stsTokenManager, opt = __rest(_a, ["uid", "auth", "stsTokenManager"]);
|
|
1837
1837
|
// For the user object, provider is always Firebase.
|
|
1838
1838
|
this.providerId = "firebase" /* FIREBASE */;
|
|
1839
|
-
this.emailVerified = false;
|
|
1840
|
-
this.isAnonymous = false;
|
|
1841
|
-
this.tenantId = null;
|
|
1842
|
-
this.providerData = [];
|
|
1843
1839
|
this.proactiveRefresh = new ProactiveRefresh(this);
|
|
1844
1840
|
this.reloadUserInfo = null;
|
|
1845
1841
|
this.reloadListener = null;
|
|
@@ -1854,6 +1850,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1854
1850
|
this.photoURL = opt.photoURL || null;
|
|
1855
1851
|
this.isAnonymous = opt.isAnonymous || false;
|
|
1856
1852
|
this.tenantId = opt.tenantId || null;
|
|
1853
|
+
this.providerData = opt.providerData ? __spreadArray([], opt.providerData) : [];
|
|
1857
1854
|
this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
|
|
1858
1855
|
}
|
|
1859
1856
|
UserImpl.prototype.getIdToken = function (forceRefresh) {
|
|
@@ -6548,23 +6545,23 @@ var MultiFactorInfoImpl = /** @class */ (function () {
|
|
|
6548
6545
|
}
|
|
6549
6546
|
MultiFactorInfoImpl._fromServerResponse = function (auth, enrollment) {
|
|
6550
6547
|
if ('phoneInfo' in enrollment) {
|
|
6551
|
-
return
|
|
6548
|
+
return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);
|
|
6552
6549
|
}
|
|
6553
6550
|
return _fail(auth, "internal-error" /* INTERNAL_ERROR */);
|
|
6554
6551
|
};
|
|
6555
6552
|
return MultiFactorInfoImpl;
|
|
6556
6553
|
}());
|
|
6557
|
-
var
|
|
6558
|
-
__extends(
|
|
6559
|
-
function
|
|
6554
|
+
var PhoneMultiFactorInfoImpl = /** @class */ (function (_super) {
|
|
6555
|
+
__extends(PhoneMultiFactorInfoImpl, _super);
|
|
6556
|
+
function PhoneMultiFactorInfoImpl(response) {
|
|
6560
6557
|
var _this = _super.call(this, "phone" /* PHONE */, response) || this;
|
|
6561
6558
|
_this.phoneNumber = response.phoneInfo;
|
|
6562
6559
|
return _this;
|
|
6563
6560
|
}
|
|
6564
|
-
|
|
6565
|
-
return new
|
|
6561
|
+
PhoneMultiFactorInfoImpl._fromServerResponse = function (_auth, enrollment) {
|
|
6562
|
+
return new PhoneMultiFactorInfoImpl(enrollment);
|
|
6566
6563
|
};
|
|
6567
|
-
return
|
|
6564
|
+
return PhoneMultiFactorInfoImpl;
|
|
6568
6565
|
}(MultiFactorInfoImpl));
|
|
6569
6566
|
|
|
6570
6567
|
/**
|