@firebase/auth 1.7.5 → 1.7.6-canary.b4c5ef3c3

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 (125) hide show
  1. package/README.md +1 -1
  2. package/dist/auth-public.d.ts +4 -4
  3. package/dist/auth.d.ts +4 -4
  4. package/dist/browser-cjs/{index-22b094f0.js → index-5eba259a.js} +12 -12
  5. package/dist/browser-cjs/index-5eba259a.js.map +1 -0
  6. package/dist/browser-cjs/index.js +1 -1
  7. package/dist/browser-cjs/internal.js +5 -5
  8. package/dist/browser-cjs/internal.js.map +1 -1
  9. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -1
  10. package/dist/browser-cjs/src/core/providers/github.d.ts +4 -4
  11. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  12. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  13. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  14. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  15. package/dist/cordova/auth-cordova-public.d.ts +4 -4
  16. package/dist/cordova/auth-cordova.d.ts +4 -4
  17. package/dist/cordova/index.js +2 -2
  18. package/dist/cordova/internal.js +4 -4
  19. package/dist/cordova/internal.js.map +1 -1
  20. package/dist/cordova/{popup_redirect-31aa6bae.js → popup_redirect-90f3d2aa.js} +13 -13
  21. package/dist/cordova/popup_redirect-90f3d2aa.js.map +1 -0
  22. package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
  23. package/dist/cordova/src/core/providers/github.d.ts +4 -4
  24. package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  25. package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  26. package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  27. package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +1 -1
  28. package/dist/esm2017/{index-54738136.js → index-3352d1c2.js} +12 -12
  29. package/dist/esm2017/index-3352d1c2.js.map +1 -0
  30. package/dist/esm2017/index.js +1 -1
  31. package/dist/esm2017/internal.js +6 -6
  32. package/dist/esm2017/internal.js.map +1 -1
  33. package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
  34. package/dist/esm2017/src/core/providers/github.d.ts +4 -4
  35. package/dist/esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  36. package/dist/esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  37. package/dist/esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  38. package/dist/esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  39. package/dist/esm5/{index-5a49f2c0.js → index-46bd91f2.js} +11 -11
  40. package/dist/esm5/index-46bd91f2.js.map +1 -0
  41. package/dist/esm5/index.js +1 -1
  42. package/dist/esm5/internal.js +6 -6
  43. package/dist/esm5/internal.js.map +1 -1
  44. package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
  45. package/dist/esm5/src/core/providers/github.d.ts +4 -4
  46. package/dist/esm5/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  47. package/dist/esm5/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  48. package/dist/esm5/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  49. package/dist/esm5/test/integration/webdriver/util/idp_page.d.ts +1 -1
  50. package/dist/index.webworker.esm5.js +8 -8
  51. package/dist/index.webworker.esm5.js.map +1 -1
  52. package/dist/node/index.js +1 -1
  53. package/dist/node/internal.js +5 -5
  54. package/dist/node/internal.js.map +1 -1
  55. package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
  56. package/dist/node/src/core/providers/github.d.ts +4 -4
  57. package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  58. package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  59. package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  60. package/dist/node/test/integration/webdriver/util/idp_page.d.ts +1 -1
  61. package/dist/node/{totp-721eac4b.js → totp-c3b735cc.js} +8 -8
  62. package/dist/node/totp-c3b735cc.js.map +1 -0
  63. package/dist/node-esm/index.js +1 -1
  64. package/dist/node-esm/internal.js +7 -7
  65. package/dist/node-esm/internal.js.map +1 -1
  66. package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
  67. package/dist/node-esm/src/core/providers/github.d.ts +4 -4
  68. package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  69. package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  70. package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  71. package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +1 -1
  72. package/dist/node-esm/{totp-3675c216.js → totp-36e8b0d9.js} +8 -8
  73. package/dist/node-esm/totp-36e8b0d9.js.map +1 -0
  74. package/dist/rn/{index-d345c8d7.js → index-6d318fe3.js} +9 -9
  75. package/dist/rn/index-6d318fe3.js.map +1 -0
  76. package/dist/rn/index.js +2 -2
  77. package/dist/rn/index.js.map +1 -1
  78. package/dist/rn/internal.js +7 -7
  79. package/dist/rn/internal.js.map +1 -1
  80. package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
  81. package/dist/rn/src/core/providers/github.d.ts +4 -4
  82. package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  83. package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  84. package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  85. package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +1 -1
  86. package/dist/src/core/auth/auth_impl.d.ts +1 -1
  87. package/dist/src/core/providers/github.d.ts +4 -4
  88. package/dist/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  89. package/dist/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  90. package/dist/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  91. package/dist/test/integration/webdriver/util/idp_page.d.ts +1 -1
  92. package/dist/web-extension-cjs/index.js +1 -1
  93. package/dist/web-extension-cjs/internal.js +8 -8
  94. package/dist/web-extension-cjs/internal.js.map +1 -1
  95. package/dist/web-extension-cjs/{register-6b27d5d8.js → register-be7a7943.js} +9 -9
  96. package/dist/web-extension-cjs/register-be7a7943.js.map +1 -0
  97. package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -1
  98. package/dist/web-extension-cjs/src/core/providers/github.d.ts +4 -4
  99. package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  100. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  101. package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  102. package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  103. package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +4 -4
  104. package/dist/web-extension-esm2017/auth-web-extension.d.ts +4 -4
  105. package/dist/web-extension-esm2017/index.js +2 -2
  106. package/dist/web-extension-esm2017/internal.js +9 -9
  107. package/dist/web-extension-esm2017/internal.js.map +1 -1
  108. package/dist/web-extension-esm2017/{register-83348242.js → register-f94f6285.js} +9 -9
  109. package/dist/web-extension-esm2017/register-f94f6285.js.map +1 -0
  110. package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -1
  111. package/dist/web-extension-esm2017/src/core/providers/github.d.ts +4 -4
  112. package/dist/web-extension-esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  113. package/dist/web-extension-esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  114. package/dist/web-extension-esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  115. package/dist/web-extension-esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  116. package/package.json +6 -6
  117. package/dist/browser-cjs/index-22b094f0.js.map +0 -1
  118. package/dist/cordova/popup_redirect-31aa6bae.js.map +0 -1
  119. package/dist/esm2017/index-54738136.js.map +0 -1
  120. package/dist/esm5/index-5a49f2c0.js.map +0 -1
  121. package/dist/node/totp-721eac4b.js.map +0 -1
  122. package/dist/node-esm/totp-3675c216.js.map +0 -1
  123. package/dist/rn/index-d345c8d7.js.map +0 -1
  124. package/dist/web-extension-cjs/register-6b27d5d8.js.map +0 -1
  125. package/dist/web-extension-esm2017/register-83348242.js.map +0 -1
@@ -122,7 +122,7 @@ export declare class AuthImpl implements AuthInternal, _FirebaseService {
122
122
  _getAppCheckToken(): Promise<string | undefined>;
123
123
  }
124
124
  /**
125
- * Method to be used to cast down to our private implmentation of Auth.
125
+ * Method to be used to cast down to our private implementation of Auth.
126
126
  * It will also handle unwrapping from the compat type if necessary
127
127
  *
128
128
  * @param auth Auth object passed in from developer
@@ -39,7 +39,7 @@ import { BaseOAuthProvider } from './oauth';
39
39
  * if (result) {
40
40
  * // This is the signed-in user
41
41
  * const user = result.user;
42
- * // This gives you a Github Access Token.
42
+ * // This gives you a GitHub Access Token.
43
43
  * const credential = GithubAuthProvider.credentialFromResult(result);
44
44
  * const token = credential.accessToken;
45
45
  * }
@@ -54,7 +54,7 @@ import { BaseOAuthProvider } from './oauth';
54
54
  *
55
55
  * // The signed-in user info.
56
56
  * const user = result.user;
57
- * // This gives you a Github Access Token.
57
+ * // This gives you a GitHub Access Token.
58
58
  * const credential = GithubAuthProvider.credentialFromResult(result);
59
59
  * const token = credential.accessToken;
60
60
  * ```
@@ -67,9 +67,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
67
67
  static readonly PROVIDER_ID: 'github.com';
68
68
  constructor();
69
69
  /**
70
- * Creates a credential for Github.
70
+ * Creates a credential for GitHub.
71
71
  *
72
- * @param accessToken - Github access token.
72
+ * @param accessToken - GitHub access token.
73
73
  */
74
74
  static credential(accessToken: string): OAuthCredential;
75
75
  /**
@@ -56,7 +56,7 @@ export declare class Receiver {
56
56
  * Unsubscribe an event handler from a particular event.
57
57
  *
58
58
  * @param eventType - Event name to unsubscribe from.
59
- * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.
59
+ * @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
60
60
  *
61
61
  */
62
62
  _unsubscribe<T extends _ReceiverResponse, S extends _SenderRequest>(eventType: _EventType, eventHandler?: ReceiverHandler<T, S>): void;
@@ -20,7 +20,7 @@ import { AuthEvent, AuthEventType } from '../../model/popup_redirect';
20
20
  /** Custom AuthEventManager that adds passive listeners to events */
21
21
  export declare class CordovaAuthEventManager extends AuthEventManager {
22
22
  private readonly passiveListeners;
23
- private resolveInialized;
23
+ private resolveInitialized;
24
24
  private initPromise;
25
25
  addPassiveListener(cb: (e: AuthEvent) => void): void;
26
26
  removePassiveListener(cb: (e: AuthEvent) => void): void;
@@ -17,7 +17,7 @@
17
17
  import { Auth, User, Persistence } from '@firebase/auth';
18
18
  import { WebDriver } from 'selenium-webdriver';
19
19
  export declare const START_FUNCTION = "startAuth";
20
- /** Helper wraper around the WebDriver object */
20
+ /** Helper wrapper around the WebDriver object */
21
21
  export declare class AuthDriver {
22
22
  webDriver: WebDriver;
23
23
  start(browser: string): Promise<void>;
@@ -26,6 +26,6 @@ export declare class IdPPage {
26
26
  fillEmail(email: string): Promise<void>;
27
27
  fillDisplayName(displayName: string): Promise<void>;
28
28
  fillScreenName(screenName: string): Promise<void>;
29
- fillProfilePhoto(prophilePhoto: string): Promise<void>;
29
+ fillProfilePhoto(profilePhoto: string): Promise<void>;
30
30
  private fillInput;
31
31
  }
@@ -155,7 +155,7 @@ function _debugErrorMap() {
155
155
  ["internal-error" /* AuthErrorCode.INTERNAL_ERROR */]: 'An internal AuthError has occurred.',
156
156
  ["invalid-app-credential" /* AuthErrorCode.INVALID_APP_CREDENTIAL */]: 'The phone verification request contains an invalid application verifier.' +
157
157
  ' The reCAPTCHA token response is either invalid or expired.',
158
- ["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */]: 'The mobile app identifier is not registed for the current project.',
158
+ ["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */]: 'The mobile app identifier is not registered for the current project.',
159
159
  ["invalid-user-token" /* AuthErrorCode.INVALID_AUTH */]: "This user's credential isn't valid for this project. This can happen " +
160
160
  "if the user's token has been tampered with, or if the user isn't for " +
161
161
  'the project associated with this API key.',
@@ -3115,7 +3115,7 @@ class AuthImpl {
3115
3115
  }
3116
3116
  }
3117
3117
  /**
3118
- * Method to be used to cast down to our private implmentation of Auth.
3118
+ * Method to be used to cast down to our private implementation of Auth.
3119
3119
  * It will also handle unwrapping from the compat type if necessary
3120
3120
  *
3121
3121
  * @param auth Auth object passed in from developer
@@ -4813,7 +4813,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* ProviderId.GOOGLE */;
4813
4813
  * if (result) {
4814
4814
  * // This is the signed-in user
4815
4815
  * const user = result.user;
4816
- * // This gives you a Github Access Token.
4816
+ * // This gives you a GitHub Access Token.
4817
4817
  * const credential = GithubAuthProvider.credentialFromResult(result);
4818
4818
  * const token = credential.accessToken;
4819
4819
  * }
@@ -4828,7 +4828,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* ProviderId.GOOGLE */;
4828
4828
  *
4829
4829
  * // The signed-in user info.
4830
4830
  * const user = result.user;
4831
- * // This gives you a Github Access Token.
4831
+ * // This gives you a GitHub Access Token.
4832
4832
  * const credential = GithubAuthProvider.credentialFromResult(result);
4833
4833
  * const token = credential.accessToken;
4834
4834
  * ```
@@ -4839,9 +4839,9 @@ class GithubAuthProvider extends BaseOAuthProvider {
4839
4839
  super("github.com" /* ProviderId.GITHUB */);
4840
4840
  }
4841
4841
  /**
4842
- * Creates a credential for Github.
4842
+ * Creates a credential for GitHub.
4843
4843
  *
4844
- * @param accessToken - Github access token.
4844
+ * @param accessToken - GitHub access token.
4845
4845
  */
4846
4846
  static credential(accessToken) {
4847
4847
  return OAuthCredential._fromParams({
@@ -7401,7 +7401,7 @@ class Receiver {
7401
7401
  * Unsubscribe an event handler from a particular event.
7402
7402
  *
7403
7403
  * @param eventType - Event name to unsubscribe from.
7404
- * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.
7404
+ * @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
7405
7405
  *
7406
7406
  */
7407
7407
  _unsubscribe(eventType, eventHandler) {
@@ -8170,7 +8170,7 @@ class ReCaptchaLoaderImpl {
8170
8170
  reject(_createError(auth, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */));
8171
8171
  return;
8172
8172
  }
8173
- // Wrap the greptcha render function so that we know if the developer has
8173
+ // Wrap the recaptcha render function so that we know if the developer has
8174
8174
  // called it separately
8175
8175
  const render = recaptcha.render;
8176
8176
  recaptcha.render = (container, params) => {
@@ -9777,7 +9777,7 @@ function matchDomain(expected) {
9777
9777
  */
9778
9778
  const NETWORK_TIMEOUT = new Delay(30000, 60000);
9779
9779
  /**
9780
- * Reset unlaoded GApi modules. If gapi.load fails due to a network error,
9780
+ * Reset unloaded GApi modules. If gapi.load fails due to a network error,
9781
9781
  * it will stop working after a retrial. This is a hack to fix this issue.
9782
9782
  */
9783
9783
  function resetUnloadedGapiModules() {
@@ -10112,7 +10112,7 @@ async function _getRedirectUrl(auth, provider, authType, redirectUrl, eventId, a
10112
10112
  if (auth.tenantId) {
10113
10113
  params.tid = auth.tenantId;
10114
10114
  }
10115
- // TODO: maybe set eid as endipointId
10115
+ // TODO: maybe set eid as endpointId
10116
10116
  // TODO: maybe set fw as Frameworks.join(",")
10117
10117
  const paramsDict = params;
10118
10118
  for (const key of Object.keys(paramsDict)) {
@@ -10468,7 +10468,7 @@ function _isEmptyString(input) {
10468
10468
  }
10469
10469
 
10470
10470
  var name = "@firebase/auth";
10471
- var version = "1.7.5";
10471
+ var version = "1.7.6-canary.b4c5ef3c3";
10472
10472
 
10473
10473
  /**
10474
10474
  * @license
@@ -10723,4 +10723,4 @@ _setExternalJSProvider({
10723
10723
  registerAuth("Browser" /* ClientPlatform.BROWSER */);
10724
10724
 
10725
10725
  export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _isIOS7Or8 as aA, _createError as aB, _assert as aC, AuthEventManager as aD, _getInstance as aE, _persistenceKeyName as aF, _getRedirectResult as aG, _overrideRedirectResult as aH, _clearRedirectOutcomes as aI, _castAuth as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, _generateEventId as aN, AuthPopup as aO, FetchProvider as aP, SAMLAuthCredential as aQ, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, debugAssert as au, _isIOS as av, _isAndroid as aw, _fail as ax, _getRedirectUrl as ay, _getProjectConfig 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, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };
10726
- //# sourceMappingURL=index-54738136.js.map
10726
+ //# sourceMappingURL=index-3352d1c2.js.map