@firebase/auth 0.23.2-canary.e642fc7cd → 0.23.2-canary.f1c8d3806
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 +3 -4
- package/dist/auth.d.ts +3 -4
- package/dist/browser-cjs/{index-35a8d5c2.js → index-cbaaa869.js} +29 -13
- package/dist/browser-cjs/index-cbaaa869.js.map +1 -0
- package/dist/browser-cjs/index.doc.d.ts +1 -1
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/index.rn.d.ts +7 -8
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/mfa/mfa_session.d.ts +3 -3
- package/dist/browser-cjs/src/model/public_types.d.ts +1 -1
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/cordova/index.doc.d.ts +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/index.rn.d.ts +7 -8
- package/dist/cordova/internal.js +11 -11
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-e88eb743.js → popup_redirect-0c43a717.js} +23 -7
- package/dist/cordova/{popup_redirect-e88eb743.js.map → popup_redirect-0c43a717.js.map} +1 -1
- package/dist/cordova/src/mfa/mfa_session.d.ts +3 -3
- package/dist/cordova/src/model/public_types.d.ts +1 -1
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/cordova/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/esm2017/{index-14ccc5f3.js → index-2e66d7ed.js} +29 -13
- package/dist/esm2017/index-2e66d7ed.js.map +1 -0
- package/dist/esm2017/index.doc.d.ts +1 -1
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/index.rn.d.ts +7 -8
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/mfa/mfa_session.d.ts +3 -3
- package/dist/esm2017/src/model/public_types.d.ts +1 -1
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/esm2017/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/esm5/{index-f5d14f2f.js → index-72cf0233.js} +32 -16
- package/dist/esm5/index-72cf0233.js.map +1 -0
- package/dist/esm5/index.doc.d.ts +1 -1
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/index.rn.d.ts +7 -8
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/mfa/mfa_session.d.ts +3 -3
- package/dist/esm5/src/model/public_types.d.ts +1 -1
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/esm5/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/index.doc.d.ts +1 -1
- package/dist/index.rn.d.ts +7 -8
- package/dist/index.webworker.esm5.js +22 -6
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.doc.d.ts +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.rn.d.ts +7 -8
- package/dist/node/internal.js +1 -1
- package/dist/node/src/mfa/mfa_session.d.ts +3 -3
- package/dist/node/src/model/public_types.d.ts +1 -1
- package/dist/node/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/node/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/node/{totp-0ccc129a.js → totp-ea92812c.js} +30 -13
- package/dist/node/{totp-0ccc129a.js.map → totp-ea92812c.js.map} +1 -1
- package/dist/node-esm/index.doc.d.ts +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/index.rn.d.ts +7 -8
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/mfa/mfa_session.d.ts +3 -3
- package/dist/node-esm/src/model/public_types.d.ts +1 -1
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/node-esm/{totp-d6b703d1.js → totp-c453433c.js} +27 -10
- package/dist/node-esm/{totp-d6b703d1.js.map → totp-c453433c.js.map} +1 -1
- package/dist/rn/index.doc.d.ts +1 -1
- package/dist/rn/index.js +5 -57
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/index.rn.d.ts +7 -8
- package/dist/rn/internal.js +8 -7
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-a8d96168.js → phone-52a61d69.js} +25 -10
- package/dist/rn/{phone-a8d96168.js.map → phone-52a61d69.js.map} +1 -1
- package/dist/rn/src/mfa/mfa_session.d.ts +3 -3
- package/dist/rn/src/model/public_types.d.ts +1 -1
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/rn/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/src/mfa/mfa_session.d.ts +3 -3
- package/dist/src/model/public_types.d.ts +1 -1
- package/dist/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +2 -3
- package/dist/test/helpers/integration/helpers.d.ts +1 -0
- package/package.json +10 -9
- package/dist/browser-cjs/index-35a8d5c2.js.map +0 -1
- package/dist/esm2017/index-14ccc5f3.js.map +0 -1
- package/dist/esm5/index-f5d14f2f.js.map +0 -1
package/dist/esm5/index.doc.d.ts
CHANGED
package/dist/esm5/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-72cf0233.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
package/dist/esm5/index.rn.d.ts
CHANGED
|
@@ -14,19 +14,18 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* This is the file that people using React Native will actually import. You
|
|
19
|
+
* should only include this file if you have something specific about your
|
|
20
|
+
* implementation that mandates having a separate entrypoint. Otherwise you can
|
|
21
|
+
* just use index.ts
|
|
22
|
+
*/
|
|
17
23
|
import { FirebaseApp } from '@firebase/app';
|
|
18
|
-
import { Auth
|
|
24
|
+
import { Auth } from './src/model/public_types';
|
|
19
25
|
import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
|
|
20
26
|
export * from './index.shared';
|
|
21
27
|
export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
|
|
22
28
|
export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
|
|
23
29
|
export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
|
|
24
|
-
/**
|
|
25
|
-
* An implementation of {@link Persistence} of type 'LOCAL' for use in React
|
|
26
|
-
* Native environments.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export declare const reactNativeLocalPersistence: Persistence;
|
|
31
30
|
export { getReactNativePersistence };
|
|
32
31
|
export declare function getAuth(app?: FirebaseApp): Auth;
|
package/dist/esm5/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { as as _isIOS, at as _isAndroid, au as _fail, av as _getRedirectUrl, aw as debugAssert, ax as _getProjectConfig, ay as _isIOS7Or8, az as _assert, aA as _createError, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, aE as _clearRedirectOutcomes, a as browserSessionPersistence, aF as _getRedirectResult, aG as _overrideRedirectResult, aH as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, az as _assert, aH as _castAuth, au as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aF as _getRedirectResult, aG as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { as as _isIOS, at as _isAndroid, au as _fail, av as _getRedirectUrl, aw as debugAssert, ax as _getProjectConfig, ay as _isIOS7Or8, az as _assert, aA as _createError, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, aE as _clearRedirectOutcomes, a as browserSessionPersistence, aF as _getRedirectResult, aG as _overrideRedirectResult, aH as _castAuth } from './index-72cf0233.js';
|
|
2
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, az as _assert, aH as _castAuth, au as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aF as _getRedirectResult, aG as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-72cf0233.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 {
|
|
17
|
+
import { UserInternal } from '../model/user';
|
|
18
18
|
import { MultiFactorSession } from '../model/public_types';
|
|
19
19
|
export declare const enum MultiFactorSessionType {
|
|
20
20
|
ENROLL = "enroll",
|
|
@@ -29,9 +29,9 @@ interface SerializedMultiFactorSession {
|
|
|
29
29
|
export declare class MultiFactorSessionImpl implements MultiFactorSession {
|
|
30
30
|
readonly type: MultiFactorSessionType;
|
|
31
31
|
readonly credential: string;
|
|
32
|
-
readonly
|
|
32
|
+
readonly user?: UserInternal | undefined;
|
|
33
33
|
private constructor();
|
|
34
|
-
static _fromIdtoken(idToken: string,
|
|
34
|
+
static _fromIdtoken(idToken: string, user?: UserInternal): MultiFactorSessionImpl;
|
|
35
35
|
static _fromMfaPendingCredential(mfaPendingCredential: string): MultiFactorSessionImpl;
|
|
36
36
|
toJSON(): SerializedMultiFactorSession;
|
|
37
37
|
static fromJSON(obj: Partial<SerializedMultiFactorSession>): MultiFactorSessionImpl | null;
|
|
@@ -46,6 +46,7 @@ export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
|
46
46
|
readonly _recaptchaLoader: ReCaptchaLoader;
|
|
47
47
|
private recaptcha;
|
|
48
48
|
/**
|
|
49
|
+
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
49
50
|
*
|
|
50
51
|
* @param containerOrId - The reCAPTCHA container parameter.
|
|
51
52
|
*
|
|
@@ -62,10 +63,8 @@ export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
|
62
63
|
* the sitekey. Firebase Auth backend provisions a reCAPTCHA for each project and will
|
|
63
64
|
* configure this upon rendering. For an invisible reCAPTCHA, a size key must have the value
|
|
64
65
|
* 'invisible'.
|
|
65
|
-
*
|
|
66
|
-
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
67
66
|
*/
|
|
68
|
-
constructor(containerOrId: HTMLElement | string, parameters
|
|
67
|
+
constructor(authExtern: Auth, containerOrId: HTMLElement | string, parameters?: RecaptchaParameters);
|
|
69
68
|
/**
|
|
70
69
|
* Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.
|
|
71
70
|
*
|
|
@@ -20,4 +20,5 @@ export declare function getTestInstance(requireEmulator?: boolean): Auth;
|
|
|
20
20
|
export declare function cleanUpTestInstance(auth: Auth): Promise<void>;
|
|
21
21
|
export declare function getTotpCode(sharedSecretKey: string, periodSec: number, verificationCodeLength: number, timestamp: Date): string;
|
|
22
22
|
export declare const email = "totpuser-donotdelete@test.com";
|
|
23
|
+
export declare const password = "password";
|
|
23
24
|
export declare const incorrectTotpCode = "1000000";
|
package/dist/index.doc.d.ts
CHANGED
package/dist/index.rn.d.ts
CHANGED
|
@@ -14,19 +14,18 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* This is the file that people using React Native will actually import. You
|
|
19
|
+
* should only include this file if you have something specific about your
|
|
20
|
+
* implementation that mandates having a separate entrypoint. Otherwise you can
|
|
21
|
+
* just use index.ts
|
|
22
|
+
*/
|
|
17
23
|
import { FirebaseApp } from '@firebase/app';
|
|
18
|
-
import { Auth
|
|
24
|
+
import { Auth } from './src/model/public_types';
|
|
19
25
|
import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
|
|
20
26
|
export * from './index.shared';
|
|
21
27
|
export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
|
|
22
28
|
export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
|
|
23
29
|
export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
|
|
24
|
-
/**
|
|
25
|
-
* An implementation of {@link Persistence} of type 'LOCAL' for use in React
|
|
26
|
-
* Native environments.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export declare const reactNativeLocalPersistence: Persistence;
|
|
31
30
|
export { getReactNativePersistence };
|
|
32
31
|
export declare function getAuth(app?: FirebaseApp): Auth;
|
|
@@ -549,7 +549,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
var name = "@firebase/auth";
|
|
552
|
-
var version = "0.23.2-canary.
|
|
552
|
+
var version = "0.23.2-canary.f1c8d3806";
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
@@ -8347,14 +8347,30 @@ function deleteUser(user) {
|
|
|
8347
8347
|
});
|
|
8348
8348
|
}
|
|
8349
8349
|
|
|
8350
|
+
/**
|
|
8351
|
+
* @license
|
|
8352
|
+
* Copyright 2020 Google LLC
|
|
8353
|
+
*
|
|
8354
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8355
|
+
* you may not use this file except in compliance with the License.
|
|
8356
|
+
* You may obtain a copy of the License at
|
|
8357
|
+
*
|
|
8358
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8359
|
+
*
|
|
8360
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8361
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8362
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8363
|
+
* See the License for the specific language governing permissions and
|
|
8364
|
+
* limitations under the License.
|
|
8365
|
+
*/
|
|
8350
8366
|
var MultiFactorSessionImpl = /** @class */ (function () {
|
|
8351
|
-
function MultiFactorSessionImpl(type, credential,
|
|
8367
|
+
function MultiFactorSessionImpl(type, credential, user) {
|
|
8352
8368
|
this.type = type;
|
|
8353
8369
|
this.credential = credential;
|
|
8354
|
-
this.
|
|
8370
|
+
this.user = user;
|
|
8355
8371
|
}
|
|
8356
|
-
MultiFactorSessionImpl._fromIdtoken = function (idToken,
|
|
8357
|
-
return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken,
|
|
8372
|
+
MultiFactorSessionImpl._fromIdtoken = function (idToken, user) {
|
|
8373
|
+
return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken, user);
|
|
8358
8374
|
};
|
|
8359
8375
|
MultiFactorSessionImpl._fromMfaPendingCredential = function (mfaPendingCredential) {
|
|
8360
8376
|
return new MultiFactorSessionImpl("signin" /* MultiFactorSessionType.SIGN_IN */, mfaPendingCredential);
|
|
@@ -8526,7 +8542,7 @@ var MultiFactorUserImpl = /** @class */ (function () {
|
|
|
8526
8542
|
case 0:
|
|
8527
8543
|
_b = (_a = MultiFactorSessionImpl)._fromIdtoken;
|
|
8528
8544
|
return [4 /*yield*/, this.user.getIdToken()];
|
|
8529
|
-
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent(), this.user
|
|
8545
|
+
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent(), this.user])];
|
|
8530
8546
|
}
|
|
8531
8547
|
});
|
|
8532
8548
|
});
|