@firebase/auth 0.21.0 → 0.21.1-20230117221326

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/auth-public.d.ts +9 -2
  3. package/dist/auth.d.ts +9 -2
  4. package/dist/cordova/index.js +2 -2
  5. package/dist/cordova/internal.js +2 -2
  6. package/dist/cordova/{popup_redirect-b7568081.js → popup_redirect-4968b6f1.js} +44 -10
  7. package/dist/cordova/{popup_redirect-b7568081.js.map → popup_redirect-4968b6f1.js.map} +1 -1
  8. package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +9 -2
  9. package/dist/cordova/test/helpers/mock_auth.d.ts +1 -1
  10. package/dist/esm2017/{index-c6def6da.js → index-38b3637d.js} +23 -4
  11. package/dist/esm2017/{index-c6def6da.js.map → index-38b3637d.js.map} +1 -1
  12. package/dist/esm2017/index.js +1 -1
  13. package/dist/esm2017/internal.js +2 -2
  14. package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +9 -2
  15. package/dist/esm2017/test/helpers/mock_auth.d.ts +1 -1
  16. package/dist/esm5/{index-ef8e1de2.js → index-87c99bef.js} +44 -10
  17. package/dist/esm5/{index-ef8e1de2.js.map → index-87c99bef.js.map} +1 -1
  18. package/dist/esm5/index.js +1 -1
  19. package/dist/esm5/internal.js +2 -2
  20. package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +9 -2
  21. package/dist/esm5/test/helpers/mock_auth.d.ts +1 -1
  22. package/dist/index.webworker.esm5.js +1 -1
  23. package/dist/node/{index-2efb81c0.js → index-b14f3f84.js} +2 -2
  24. package/dist/node/{index-2efb81c0.js.map → index-b14f3f84.js.map} +1 -1
  25. package/dist/node/index.js +1 -1
  26. package/dist/node/internal.js +1 -1
  27. package/dist/node/internal.js.map +1 -1
  28. package/dist/node/src/platform_browser/strategies/redirect.d.ts +9 -2
  29. package/dist/node/test/helpers/mock_auth.d.ts +1 -1
  30. package/dist/node-esm/{index-e0bc98c8.js → index-dd2b9512.js} +2 -2
  31. package/dist/node-esm/{index-e0bc98c8.js.map → index-dd2b9512.js.map} +1 -1
  32. package/dist/node-esm/index.js +1 -1
  33. package/dist/node-esm/internal.js +2 -2
  34. package/dist/node-esm/internal.js.map +1 -1
  35. package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +9 -2
  36. package/dist/node-esm/test/helpers/mock_auth.d.ts +1 -1
  37. package/dist/rn/index.js +1 -1
  38. package/dist/rn/internal.js +43 -9
  39. package/dist/rn/internal.js.map +1 -1
  40. package/dist/rn/{phone-bc99e0b0.js → phone-f3df5463.js} +2 -2
  41. package/dist/rn/{phone-bc99e0b0.js.map → phone-f3df5463.js.map} +1 -1
  42. package/dist/rn/src/platform_browser/strategies/redirect.d.ts +9 -2
  43. package/dist/rn/test/helpers/mock_auth.d.ts +1 -1
  44. package/dist/src/platform_browser/strategies/redirect.d.ts +9 -2
  45. package/dist/test/helpers/mock_auth.d.ts +1 -1
  46. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-c6def6da.js';
1
+ export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-38b3637d.js';
2
2
  import '@firebase/util';
3
3
  import '@firebase/app';
4
4
  import '@firebase/logger';
@@ -1,5 +1,5 @@
1
- import { ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _isIOS7Or8, aw as _createError, ax as _assert, ay as AuthEventManager, az as _getInstance, b as browserLocalPersistence, aA as _persistenceKeyName, a as browserSessionPersistence, aB as _getRedirectResult, aC as _overrideRedirectResult, aD as _clearRedirectOutcomes, aE as _castAuth } from './index-c6def6da.js';
2
- export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aG as AuthImpl, aJ as AuthPopup, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aK as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aL as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aF as UserImpl, ax as _assert, aE as _castAuth, as as _fail, aI as _generateEventId, aH as _getClientVersion, az as _getInstance, aB as _getRedirectResult, aC as _overrideRedirectResult, aA as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-c6def6da.js';
1
+ import { ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _isIOS7Or8, aw as _createError, ax as _assert, ay as AuthEventManager, az as _getInstance, b as browserLocalPersistence, aA as _persistenceKeyName, a as browserSessionPersistence, aB as _getRedirectResult, aC as _overrideRedirectResult, aD as _clearRedirectOutcomes, aE as _castAuth } from './index-38b3637d.js';
2
+ export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aG as AuthImpl, aJ as AuthPopup, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aK as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aL as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aF as UserImpl, ax as _assert, aE as _castAuth, as as _fail, aI as _generateEventId, aH as _getClientVersion, az as _getInstance, aB as _getRedirectResult, aC as _overrideRedirectResult, aA as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-38b3637d.js';
3
3
  import { querystringDecode } from '@firebase/util';
4
4
  import '@firebase/app';
5
5
  import '@firebase/logger';
@@ -20,6 +20,7 @@ import { Auth, AuthProvider, PopupRedirectResolver, User, UserCredential } from
20
20
  *
21
21
  * @remarks
22
22
  * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
23
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link signInWithRedirect}.
23
24
  *
24
25
  * @example
25
26
  * ```javascript
@@ -58,6 +59,9 @@ export declare function signInWithRedirect(auth: Auth, provider: AuthProvider, r
58
59
  export declare function _signInWithRedirect(auth: Auth, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<void | never>;
59
60
  /**
60
61
  * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.
62
+ * @remarks
63
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
64
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link reauthenticateWithRedirect}.
61
65
  *
62
66
  * @example
63
67
  * ```javascript
@@ -68,8 +72,8 @@ export declare function _signInWithRedirect(auth: Auth, provider: AuthProvider,
68
72
  *
69
73
  * // After returning from the redirect when your app initializes you can obtain the result
70
74
  * const result = await getRedirectResult(auth);
71
- * // Link using a redirect.
72
- * await linkWithRedirect(result.user, provider);
75
+ * // Reauthenticate using a redirect.
76
+ * await reauthenticateWithRedirect(result.user, provider);
73
77
  * // This will again trigger a full page redirect away from your app
74
78
  *
75
79
  * // After returning from the redirect when your app initializes you can obtain the result
@@ -88,6 +92,9 @@ export declare function reauthenticateWithRedirect(user: User, provider: AuthPro
88
92
  export declare function _reauthenticateWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<void | never>;
89
93
  /**
90
94
  * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.
95
+ * @remarks
96
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
97
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link linkWithRedirect}.
91
98
  *
92
99
  * @example
93
100
  * ```javascript
@@ -38,5 +38,5 @@ export declare class MockPersistenceLayer extends InMemoryPersistence {
38
38
  _set(key: string, object: PersistedBlob): Promise<void>;
39
39
  _remove(key: string): Promise<void>;
40
40
  }
41
- export declare function testAuth(popupRedirectResolver?: PopupRedirectResolver, persistence?: MockPersistenceLayer): Promise<TestAuth>;
41
+ export declare function testAuth(popupRedirectResolver?: PopupRedirectResolver, persistence?: MockPersistenceLayer, skipAwaitOnInit?: boolean): Promise<TestAuth>;
42
42
  export declare function testUser(auth: AuthInternal, uid: string, email?: string, fakeTokens?: boolean): UserInternal;
@@ -9989,6 +9989,7 @@ function pendingRedirectKey(auth) {
9989
9989
  *
9990
9990
  * @remarks
9991
9991
  * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
9992
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link signInWithRedirect}.
9992
9993
  *
9993
9994
  * @example
9994
9995
  * ```javascript
@@ -10034,9 +10035,18 @@ function _signInWithRedirect(auth, provider, resolver) {
10034
10035
  case 0:
10035
10036
  authInternal = _castAuth(auth);
10036
10037
  _assertInstanceOf(auth, provider, FederatedAuthProvider);
10038
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10039
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10040
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10041
+ return [4 /*yield*/, authInternal._initializationPromise];
10042
+ case 1:
10043
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10044
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10045
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10046
+ _a.sent();
10037
10047
  resolverInternal = _withDefaultResolver(authInternal, resolver);
10038
10048
  return [4 /*yield*/, _setPendingRedirectStatus(resolverInternal, authInternal)];
10039
- case 1:
10049
+ case 2:
10040
10050
  _a.sent();
10041
10051
  return [2 /*return*/, resolverInternal._openRedirect(authInternal, provider, "signInViaRedirect" /* AuthEventType.SIGN_IN_VIA_REDIRECT */)];
10042
10052
  }
@@ -10045,6 +10055,9 @@ function _signInWithRedirect(auth, provider, resolver) {
10045
10055
  }
10046
10056
  /**
10047
10057
  * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.
10058
+ * @remarks
10059
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
10060
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link reauthenticateWithRedirect}.
10048
10061
  *
10049
10062
  * @example
10050
10063
  * ```javascript
@@ -10055,8 +10068,8 @@ function _signInWithRedirect(auth, provider, resolver) {
10055
10068
  *
10056
10069
  * // After returning from the redirect when your app initializes you can obtain the result
10057
10070
  * const result = await getRedirectResult(auth);
10058
- * // Link using a redirect.
10059
- * await linkWithRedirect(result.user, provider);
10071
+ * // Reauthenticate using a redirect.
10072
+ * await reauthenticateWithRedirect(result.user, provider);
10060
10073
  * // This will again trigger a full page redirect away from your app
10061
10074
  *
10062
10075
  * // After returning from the redirect when your app initializes you can obtain the result
@@ -10082,12 +10095,21 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
10082
10095
  case 0:
10083
10096
  userInternal = getModularInstance(user);
10084
10097
  _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);
10098
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10099
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10100
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10101
+ return [4 /*yield*/, userInternal.auth._initializationPromise];
10102
+ case 1:
10103
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10104
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10105
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10106
+ _a.sent();
10085
10107
  resolverInternal = _withDefaultResolver(userInternal.auth, resolver);
10086
10108
  return [4 /*yield*/, _setPendingRedirectStatus(resolverInternal, userInternal.auth)];
10087
- case 1:
10109
+ case 2:
10088
10110
  _a.sent();
10089
10111
  return [4 /*yield*/, prepareUserForRedirect(userInternal)];
10090
- case 2:
10112
+ case 3:
10091
10113
  eventId = _a.sent();
10092
10114
  return [2 /*return*/, resolverInternal._openRedirect(userInternal.auth, provider, "reauthViaRedirect" /* AuthEventType.REAUTH_VIA_REDIRECT */, eventId)];
10093
10115
  }
@@ -10096,6 +10118,9 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
10096
10118
  }
10097
10119
  /**
10098
10120
  * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.
10121
+ * @remarks
10122
+ * To handle the results and errors for this operation, refer to {@link getRedirectResult}.
10123
+ * Follow the [best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices) when using {@link linkWithRedirect}.
10099
10124
  *
10100
10125
  * @example
10101
10126
  * ```javascript
@@ -10130,15 +10155,24 @@ function _linkWithRedirect(user, provider, resolver) {
10130
10155
  case 0:
10131
10156
  userInternal = getModularInstance(user);
10132
10157
  _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);
10158
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10159
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10160
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10161
+ return [4 /*yield*/, userInternal.auth._initializationPromise];
10162
+ case 1:
10163
+ // Wait for auth initialization to complete, this will process pending redirects and clear the
10164
+ // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10165
+ // redirect and creating a PENDING_REDIRECT_KEY entry.
10166
+ _a.sent();
10133
10167
  resolverInternal = _withDefaultResolver(userInternal.auth, resolver);
10134
10168
  return [4 /*yield*/, _assertLinkedStatus(false, userInternal, provider.providerId)];
10135
- case 1:
10169
+ case 2:
10136
10170
  _a.sent();
10137
10171
  return [4 /*yield*/, _setPendingRedirectStatus(resolverInternal, userInternal.auth)];
10138
- case 2:
10172
+ case 3:
10139
10173
  _a.sent();
10140
10174
  return [4 /*yield*/, prepareUserForRedirect(userInternal)];
10141
- case 3:
10175
+ case 4:
10142
10176
  eventId = _a.sent();
10143
10177
  return [2 /*return*/, resolverInternal._openRedirect(userInternal.auth, provider, "linkViaRedirect" /* AuthEventType.LINK_VIA_REDIRECT */, eventId)];
10144
10178
  }
@@ -11065,7 +11099,7 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
11065
11099
  }());
11066
11100
 
11067
11101
  var name = "@firebase/auth";
11068
- var version = "0.21.0";
11102
+ var version = "0.21.1-20230117221326";
11069
11103
 
11070
11104
  /**
11071
11105
  * @license
@@ -11323,4 +11357,4 @@ function getAuth(app) {
11323
11357
  registerAuth("Browser" /* ClientPlatform.BROWSER */);
11324
11358
 
11325
11359
  export { signInWithCustomToken as $, ActionCodeOperation as A, debugErrorMap as B, prodErrorMap as C, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as D, initializeAuth as E, FactorId as F, connectAuthEmulator as G, AuthCredential as H, EmailAuthCredential as I, OAuthCredential as J, PhoneAuthCredential as K, inMemoryPersistence as L, EmailAuthProvider as M, FacebookAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GoogleAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, GithubAuthProvider as T, OAuthProvider as U, SAMLAuthProvider as V, TwitterAuthProvider as W, signInAnonymously as X, signInWithCredential as Y, linkWithCredential as Z, reauthenticateWithCredential as _, browserSessionPersistence as a, sendPasswordResetEmail as a0, confirmPasswordReset as a1, applyActionCode as a2, checkActionCode as a3, verifyPasswordResetCode as a4, createUserWithEmailAndPassword as a5, signInWithEmailAndPassword as a6, sendSignInLinkToEmail as a7, isSignInWithEmailLink as a8, signInWithEmailLink as a9, _persistenceKeyName as aA, _clearRedirectOutcomes as aB, _getRedirectResult as aC, _overrideRedirectResult as aD, _castAuth as aE, UserImpl as aF, AuthImpl as aG, _getClientVersion as aH, _generateEventId as aI, AuthPopup as aJ, FetchProvider as aK, SAMLAuthCredential as aL, fetchSignInMethodsForEmail as aa, sendEmailVerification as ab, verifyBeforeUpdateEmail as ac, ActionCodeURL as ad, parseActionCodeURL as ae, updateProfile as af, updateEmail as ag, updatePassword as ah, getIdToken as ai, getIdTokenResult as aj, unlink as ak, getAdditionalUserInfo as al, reload as am, getMultiFactorResolver as an, multiFactor as ao, _isIOS as ap, _isAndroid as aq, _fail as ar, _getRedirectUrl as as, debugAssert as at, _getProjectConfig as au, _isIOS7Or8 as av, _assert as aw, _createError as ax, AuthEventManager as ay, _getInstance 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, beforeAuthStateChanged as t, updatePhoneNumber as u, onAuthStateChanged as v, useDeviceLanguage as w, updateCurrentUser as x, signOut as y, deleteUser as z };
11326
- //# sourceMappingURL=index-ef8e1de2.js.map
11360
+ //# sourceMappingURL=index-87c99bef.js.map