@firebase/auth 1.3.2 → 1.4.0-canary.00235ba68

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 (142) hide show
  1. package/dist/auth-public.d.ts +24 -2
  2. package/dist/auth.d.ts +26 -3
  3. package/dist/browser-cjs/{index-770706ba.js → index-d50ad728.js} +68 -11
  4. package/dist/browser-cjs/index-d50ad728.js.map +1 -0
  5. package/dist/browser-cjs/index.js +2 -1
  6. package/dist/browser-cjs/index.js.map +1 -1
  7. package/dist/browser-cjs/internal.js +2 -1
  8. package/dist/browser-cjs/internal.js.map +1 -1
  9. package/dist/browser-cjs/src/api/account_management/email_and_password.d.ts +2 -0
  10. package/dist/browser-cjs/src/api/authentication/sign_up.d.ts +1 -0
  11. package/dist/browser-cjs/src/api/authentication/token.d.ts +13 -2
  12. package/dist/browser-cjs/src/api/errors.d.ts +1 -0
  13. package/dist/browser-cjs/src/api/index.d.ts +3 -1
  14. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +4 -0
  15. package/dist/browser-cjs/src/core/errors.d.ts +2 -1
  16. package/dist/browser-cjs/src/core/index.d.ts +9 -0
  17. package/dist/browser-cjs/src/core/strategies/email.d.ts +5 -1
  18. package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +5 -1
  19. package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -0
  20. package/dist/browser-cjs/src/model/auth.d.ts +1 -0
  21. package/dist/cordova/index.js +2 -2
  22. package/dist/cordova/internal.js +2 -2
  23. package/dist/cordova/{popup_redirect-a9365a6c.js → popup_redirect-599b3914.js} +92 -15
  24. package/dist/cordova/popup_redirect-599b3914.js.map +1 -0
  25. package/dist/cordova/src/api/account_management/email_and_password.d.ts +2 -0
  26. package/dist/cordova/src/api/authentication/sign_up.d.ts +1 -0
  27. package/dist/cordova/src/api/authentication/token.d.ts +13 -2
  28. package/dist/cordova/src/api/errors.d.ts +1 -0
  29. package/dist/cordova/src/api/index.d.ts +3 -1
  30. package/dist/cordova/src/core/auth/auth_impl.d.ts +4 -0
  31. package/dist/cordova/src/core/errors.d.ts +2 -1
  32. package/dist/cordova/src/core/index.d.ts +9 -0
  33. package/dist/cordova/src/core/strategies/email.d.ts +5 -1
  34. package/dist/cordova/src/core/strategies/email_and_password.d.ts +5 -1
  35. package/dist/cordova/src/core/user/account_info.d.ts +3 -0
  36. package/dist/cordova/src/model/auth.d.ts +1 -0
  37. package/dist/esm2017/{index-94e5f531.js → index-2b54b271.js} +68 -12
  38. package/dist/esm2017/index-2b54b271.js.map +1 -0
  39. package/dist/esm2017/index.js +1 -1
  40. package/dist/esm2017/internal.js +2 -2
  41. package/dist/esm2017/src/api/account_management/email_and_password.d.ts +2 -0
  42. package/dist/esm2017/src/api/authentication/sign_up.d.ts +1 -0
  43. package/dist/esm2017/src/api/authentication/token.d.ts +13 -2
  44. package/dist/esm2017/src/api/errors.d.ts +1 -0
  45. package/dist/esm2017/src/api/index.d.ts +3 -1
  46. package/dist/esm2017/src/core/auth/auth_impl.d.ts +4 -0
  47. package/dist/esm2017/src/core/errors.d.ts +2 -1
  48. package/dist/esm2017/src/core/index.d.ts +9 -0
  49. package/dist/esm2017/src/core/strategies/email.d.ts +5 -1
  50. package/dist/esm2017/src/core/strategies/email_and_password.d.ts +5 -1
  51. package/dist/esm2017/src/core/user/account_info.d.ts +3 -0
  52. package/dist/esm2017/src/model/auth.d.ts +1 -0
  53. package/dist/esm5/{index-7b6c682b.js → index-ab0a3e4e.js} +92 -15
  54. package/dist/esm5/index-ab0a3e4e.js.map +1 -0
  55. package/dist/esm5/index.js +1 -1
  56. package/dist/esm5/internal.js +2 -2
  57. package/dist/esm5/src/api/account_management/email_and_password.d.ts +2 -0
  58. package/dist/esm5/src/api/authentication/sign_up.d.ts +1 -0
  59. package/dist/esm5/src/api/authentication/token.d.ts +13 -2
  60. package/dist/esm5/src/api/errors.d.ts +1 -0
  61. package/dist/esm5/src/api/index.d.ts +3 -1
  62. package/dist/esm5/src/core/auth/auth_impl.d.ts +4 -0
  63. package/dist/esm5/src/core/errors.d.ts +2 -1
  64. package/dist/esm5/src/core/index.d.ts +9 -0
  65. package/dist/esm5/src/core/strategies/email.d.ts +5 -1
  66. package/dist/esm5/src/core/strategies/email_and_password.d.ts +5 -1
  67. package/dist/esm5/src/core/user/account_info.d.ts +3 -0
  68. package/dist/esm5/src/model/auth.d.ts +1 -0
  69. package/dist/index.webworker.esm5.js +91 -14
  70. package/dist/index.webworker.esm5.js.map +1 -1
  71. package/dist/node/index.js +3 -2
  72. package/dist/node/index.js.map +1 -1
  73. package/dist/node/internal.js +3 -2
  74. package/dist/node/internal.js.map +1 -1
  75. package/dist/node/src/api/account_management/email_and_password.d.ts +2 -0
  76. package/dist/node/src/api/authentication/sign_up.d.ts +1 -0
  77. package/dist/node/src/api/authentication/token.d.ts +13 -2
  78. package/dist/node/src/api/errors.d.ts +1 -0
  79. package/dist/node/src/api/index.d.ts +3 -1
  80. package/dist/node/src/core/auth/auth_impl.d.ts +4 -0
  81. package/dist/node/src/core/errors.d.ts +2 -1
  82. package/dist/node/src/core/index.d.ts +9 -0
  83. package/dist/node/src/core/strategies/email.d.ts +5 -1
  84. package/dist/node/src/core/strategies/email_and_password.d.ts +5 -1
  85. package/dist/node/src/core/user/account_info.d.ts +3 -0
  86. package/dist/node/src/model/auth.d.ts +1 -0
  87. package/dist/node/{totp-24a79064.js → totp-b6ed1d9d.js} +94 -36
  88. package/dist/node/totp-b6ed1d9d.js.map +1 -0
  89. package/dist/node-esm/index.js +2 -2
  90. package/dist/node-esm/internal.js +3 -3
  91. package/dist/node-esm/src/api/account_management/email_and_password.d.ts +2 -0
  92. package/dist/node-esm/src/api/authentication/sign_up.d.ts +1 -0
  93. package/dist/node-esm/src/api/authentication/token.d.ts +13 -2
  94. package/dist/node-esm/src/api/errors.d.ts +1 -0
  95. package/dist/node-esm/src/api/index.d.ts +3 -1
  96. package/dist/node-esm/src/core/auth/auth_impl.d.ts +4 -0
  97. package/dist/node-esm/src/core/errors.d.ts +2 -1
  98. package/dist/node-esm/src/core/index.d.ts +9 -0
  99. package/dist/node-esm/src/core/strategies/email.d.ts +5 -1
  100. package/dist/node-esm/src/core/strategies/email_and_password.d.ts +5 -1
  101. package/dist/node-esm/src/core/user/account_info.d.ts +3 -0
  102. package/dist/node-esm/src/model/auth.d.ts +1 -0
  103. package/dist/node-esm/{totp-a0f18007.js → totp-aa0a9277.js} +70 -14
  104. package/dist/node-esm/totp-aa0a9277.js.map +1 -0
  105. package/dist/rn/{index-3d9ec48b.js → index-943ed676.js} +92 -14
  106. package/dist/rn/index-943ed676.js.map +1 -0
  107. package/dist/rn/index.js +2 -1
  108. package/dist/rn/index.js.map +1 -1
  109. package/dist/rn/internal.js +2 -1
  110. package/dist/rn/internal.js.map +1 -1
  111. package/dist/rn/src/api/account_management/email_and_password.d.ts +2 -0
  112. package/dist/rn/src/api/authentication/sign_up.d.ts +1 -0
  113. package/dist/rn/src/api/authentication/token.d.ts +13 -2
  114. package/dist/rn/src/api/errors.d.ts +1 -0
  115. package/dist/rn/src/api/index.d.ts +3 -1
  116. package/dist/rn/src/core/auth/auth_impl.d.ts +4 -0
  117. package/dist/rn/src/core/errors.d.ts +2 -1
  118. package/dist/rn/src/core/index.d.ts +9 -0
  119. package/dist/rn/src/core/strategies/email.d.ts +5 -1
  120. package/dist/rn/src/core/strategies/email_and_password.d.ts +5 -1
  121. package/dist/rn/src/core/user/account_info.d.ts +3 -0
  122. package/dist/rn/src/model/auth.d.ts +1 -0
  123. package/dist/src/api/account_management/email_and_password.d.ts +2 -0
  124. package/dist/src/api/authentication/sign_up.d.ts +1 -0
  125. package/dist/src/api/authentication/token.d.ts +13 -2
  126. package/dist/src/api/errors.d.ts +1 -0
  127. package/dist/src/api/index.d.ts +3 -1
  128. package/dist/src/core/auth/auth_impl.d.ts +4 -0
  129. package/dist/src/core/errors.d.ts +2 -1
  130. package/dist/src/core/index.d.ts +9 -0
  131. package/dist/src/core/strategies/email.d.ts +5 -1
  132. package/dist/src/core/strategies/email_and_password.d.ts +5 -1
  133. package/dist/src/core/user/account_info.d.ts +3 -0
  134. package/dist/src/model/auth.d.ts +1 -0
  135. package/package.json +7 -7
  136. package/dist/browser-cjs/index-770706ba.js.map +0 -1
  137. package/dist/cordova/popup_redirect-a9365a6c.js.map +0 -1
  138. package/dist/esm2017/index-94e5f531.js.map +0 -1
  139. package/dist/esm5/index-7b6c682b.js.map +0 -1
  140. package/dist/node/totp-24a79064.js.map +0 -1
  141. package/dist/node-esm/totp-a0f18007.js.map +0 -1
  142. package/dist/rn/index-3d9ec48b.js.map +0 -1
@@ -990,7 +990,7 @@ function _debugErrorMap() {
990
990
  _a["invalid-emulator-scheme" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */] = 'Emulator URL must start with a valid scheme (http:// or https://).',
991
991
  _a["invalid-api-key" /* AuthErrorCode.INVALID_API_KEY */] = 'Your API key is invalid, please check you have copied it correctly.',
992
992
  _a["invalid-cert-hash" /* AuthErrorCode.INVALID_CERT_HASH */] = 'The SHA-1 certificate hash provided is invalid.',
993
- _a["invalid-credential" /* AuthErrorCode.INVALID_IDP_RESPONSE */] = 'The supplied auth credential is malformed or has expired.',
993
+ _a["invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */] = 'The supplied auth credential is incorrect, malformed or has expired.',
994
994
  _a["invalid-message-payload" /* AuthErrorCode.INVALID_MESSAGE_PAYLOAD */] = 'The email template corresponding to this action contains invalid characters in its message. ' +
995
995
  'Please fix by going to the Auth email templates section in the Firebase Console.',
996
996
  _a["invalid-multi-factor-session" /* AuthErrorCode.INVALID_MFA_SESSION */] = 'The request does not contain a valid proof of first factor successful sign-in.',
@@ -1167,6 +1167,7 @@ var AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
1167
1167
  INVALID_EMAIL: 'auth/invalid-email',
1168
1168
  INVALID_EMULATOR_SCHEME: 'auth/invalid-emulator-scheme',
1169
1169
  INVALID_IDP_RESPONSE: 'auth/invalid-credential',
1170
+ INVALID_LOGIN_CREDENTIALS: 'auth/invalid-credential',
1170
1171
  INVALID_MESSAGE_PAYLOAD: 'auth/invalid-message-payload',
1171
1172
  INVALID_MFA_SESSION: 'auth/invalid-multi-factor-session',
1172
1173
  INVALID_OAUTH_CLIENT_ID: 'auth/invalid-oauth-client-id',
@@ -1632,12 +1633,15 @@ var SERVER_ERROR_MAP = (_a$1 = {},
1632
1633
  _a$1["INVALID_PASSWORD" /* ServerError.INVALID_PASSWORD */] = "wrong-password" /* AuthErrorCode.INVALID_PASSWORD */,
1633
1634
  // This can only happen if the SDK sends a bad request.
1634
1635
  _a$1["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */] = "missing-password" /* AuthErrorCode.MISSING_PASSWORD */,
1636
+ // Thrown if Email Enumeration Protection is enabled in the project and the email or password is
1637
+ // invalid.
1638
+ _a$1["INVALID_LOGIN_CREDENTIALS" /* ServerError.INVALID_LOGIN_CREDENTIALS */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
1635
1639
  // Sign up with email and password errors.
1636
1640
  _a$1["EMAIL_EXISTS" /* ServerError.EMAIL_EXISTS */] = "email-already-in-use" /* AuthErrorCode.EMAIL_EXISTS */,
1637
1641
  _a$1["PASSWORD_LOGIN_DISABLED" /* ServerError.PASSWORD_LOGIN_DISABLED */] = "operation-not-allowed" /* AuthErrorCode.OPERATION_NOT_ALLOWED */,
1638
1642
  // Verify assertion for sign in with credential errors:
1639
- _a$1["INVALID_IDP_RESPONSE" /* ServerError.INVALID_IDP_RESPONSE */] = "invalid-credential" /* AuthErrorCode.INVALID_IDP_RESPONSE */,
1640
- _a$1["INVALID_PENDING_TOKEN" /* ServerError.INVALID_PENDING_TOKEN */] = "invalid-credential" /* AuthErrorCode.INVALID_IDP_RESPONSE */,
1643
+ _a$1["INVALID_IDP_RESPONSE" /* ServerError.INVALID_IDP_RESPONSE */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
1644
+ _a$1["INVALID_PENDING_TOKEN" /* ServerError.INVALID_PENDING_TOKEN */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
1641
1645
  _a$1["FEDERATED_USER_ID_ALREADY_LINKED" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */] = "credential-already-in-use" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */,
1642
1646
  // This can only happen if the SDK sends a bad request.
1643
1647
  _a$1["MISSING_REQ_TYPE" /* ServerError.MISSING_REQ_TYPE */] = "internal-error" /* AuthErrorCode.INTERNAL_ERROR */,
@@ -1659,7 +1663,7 @@ var SERVER_ERROR_MAP = (_a$1 = {},
1659
1663
  // Phone Auth related errors.
1660
1664
  _a$1["INVALID_CODE" /* ServerError.INVALID_CODE */] = "invalid-verification-code" /* AuthErrorCode.INVALID_CODE */,
1661
1665
  _a$1["INVALID_SESSION_INFO" /* ServerError.INVALID_SESSION_INFO */] = "invalid-verification-id" /* AuthErrorCode.INVALID_SESSION_INFO */,
1662
- _a$1["INVALID_TEMPORARY_PROOF" /* ServerError.INVALID_TEMPORARY_PROOF */] = "invalid-credential" /* AuthErrorCode.INVALID_IDP_RESPONSE */,
1666
+ _a$1["INVALID_TEMPORARY_PROOF" /* ServerError.INVALID_TEMPORARY_PROOF */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
1663
1667
  _a$1["MISSING_SESSION_INFO" /* ServerError.MISSING_SESSION_INFO */] = "missing-verification-id" /* AuthErrorCode.MISSING_SESSION_INFO */,
1664
1668
  _a$1["SESSION_EXPIRED" /* ServerError.SESSION_EXPIRED */] = "code-expired" /* AuthErrorCode.CODE_EXPIRED */,
1665
1669
  // Other action code errors when additional settings passed.
@@ -2543,6 +2547,13 @@ function requestStsToken(auth, refreshToken) {
2543
2547
  }
2544
2548
  });
2545
2549
  });
2550
+ }
2551
+ function revokeToken(auth, request) {
2552
+ return __awaiter(this, void 0, void 0, function () {
2553
+ return __generator(this, function (_a) {
2554
+ return [2 /*return*/, _performApiRequest(auth, "POST" /* HttpMethod.POST */, "/v2/accounts:revokeToken" /* Endpoint.REVOKE_TOKEN */, _addTidIfNecessary(auth, request))];
2555
+ });
2556
+ });
2546
2557
  }
2547
2558
 
2548
2559
  /**
@@ -4145,6 +4156,37 @@ var AuthImpl = /** @class */ (function () {
4145
4156
  }
4146
4157
  });
4147
4158
  };
4159
+ /**
4160
+ * Revokes the given access token. Currently only supports Apple OAuth access tokens.
4161
+ */
4162
+ AuthImpl.prototype.revokeAccessToken = function (token) {
4163
+ return __awaiter(this, void 0, void 0, function () {
4164
+ var idToken, request;
4165
+ return __generator(this, function (_a) {
4166
+ switch (_a.label) {
4167
+ case 0:
4168
+ if (!this.currentUser) return [3 /*break*/, 3];
4169
+ return [4 /*yield*/, this.currentUser.getIdToken()];
4170
+ case 1:
4171
+ idToken = _a.sent();
4172
+ request = {
4173
+ providerId: 'apple.com',
4174
+ tokenType: "ACCESS_TOKEN" /* TokenType.ACCESS_TOKEN */,
4175
+ token: token,
4176
+ idToken: idToken
4177
+ };
4178
+ if (this.tenantId != null) {
4179
+ request.tenantId = this.tenantId;
4180
+ }
4181
+ return [4 /*yield*/, revokeToken(this, request)];
4182
+ case 2:
4183
+ _a.sent();
4184
+ _a.label = 3;
4185
+ case 3: return [2 /*return*/];
4186
+ }
4187
+ });
4188
+ });
4189
+ };
4148
4190
  AuthImpl.prototype.toJSON = function () {
4149
4191
  var _a;
4150
4192
  return {
@@ -4988,6 +5030,15 @@ function updateEmailPassword(auth, request) {
4988
5030
  });
4989
5031
  });
4990
5032
  }
5033
+ // Used for linking an email/password account to an existing idToken. Uses the same request/response
5034
+ // format as updateEmailPassword.
5035
+ function linkEmailPassword(auth, request) {
5036
+ return __awaiter(this, void 0, void 0, function () {
5037
+ return __generator(this, function (_a) {
5038
+ return [2 /*return*/, _performApiRequest(auth, "POST" /* HttpMethod.POST */, "/v1/accounts:signUp" /* Endpoint.SIGN_UP */, request)];
5039
+ });
5040
+ });
5041
+ }
4991
5042
  function applyActionCode$1(auth, request) {
4992
5043
  return __awaiter(this, void 0, void 0, function () {
4993
5044
  return __generator(this, function (_a) {
@@ -5196,15 +5247,18 @@ var EmailAuthCredential = /** @class */ (function (_super) {
5196
5247
  /** @internal */
5197
5248
  EmailAuthCredential.prototype._linkToIdToken = function (auth, idToken) {
5198
5249
  return __awaiter(this, void 0, void 0, function () {
5250
+ var request;
5199
5251
  return __generator(this, function (_a) {
5200
5252
  switch (this.signInMethod) {
5201
5253
  case "password" /* SignInMethod.EMAIL_PASSWORD */:
5202
- return [2 /*return*/, updateEmailPassword(auth, {
5203
- idToken: idToken,
5204
- returnSecureToken: true,
5205
- email: this._email,
5206
- password: this._password
5207
- })];
5254
+ request = {
5255
+ idToken: idToken,
5256
+ returnSecureToken: true,
5257
+ email: this._email,
5258
+ password: this._password,
5259
+ clientType: "CLIENT_TYPE_WEB" /* RecaptchaClientType.WEB */
5260
+ };
5261
+ return [2 /*return*/, handleRecaptchaFlow(auth, request, "signUpPassword" /* RecaptchaActionName.SIGN_UP_PASSWORD */, linkEmailPassword)];
5208
5262
  case "emailLink" /* SignInMethod.EMAIL_LINK */:
5209
5263
  return [2 /*return*/, signInWithEmailLinkForLinking(auth, {
5210
5264
  idToken: idToken,
@@ -7374,7 +7428,9 @@ function recachePasswordPolicy(auth) {
7374
7428
  });
7375
7429
  }
7376
7430
  /**
7377
- * Sends a password reset email to the given email address.
7431
+ * Sends a password reset email to the given email address. This method does not throw an error when
7432
+ * there's no user account with the given email address and
7433
+ * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
7378
7434
  *
7379
7435
  * @remarks
7380
7436
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -7615,6 +7671,8 @@ function createUserWithEmailAndPassword(auth, email, password) {
7615
7671
  *
7616
7672
  * @remarks
7617
7673
  * Fails with an error if the email address and password do not match.
7674
+ * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
7675
+ * this method fails with "auth/invalid-credential" in case of an invalid email/password.
7618
7676
  *
7619
7677
  * Note: The user's password is NOT the password used to access the user's email account. The
7620
7678
  * email address serves as a unique identifier for the user, and the password is used to access
@@ -7823,7 +7881,9 @@ function createAuthUri(auth, request) {
7823
7881
  * limitations under the License.
7824
7882
  */
7825
7883
  /**
7826
- * Gets the list of possible sign in methods for the given email address.
7884
+ * Gets the list of possible sign in methods for the given email address. This method returns an
7885
+ * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
7886
+ * authentication methods available for the given email.
7827
7887
  *
7828
7888
  * @remarks
7829
7889
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -7834,6 +7894,8 @@ function createAuthUri(auth, request) {
7834
7894
  * @param auth - The {@link Auth} instance.
7835
7895
  * @param email - The user's email address.
7836
7896
  *
7897
+ * Deprecated. Migrating off of this method is recommended as a security best-practice.
7898
+ * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
7837
7899
  * @public
7838
7900
  */
7839
7901
  function fetchSignInMethodsForEmail(auth, email) {
@@ -8088,6 +8150,9 @@ function updateProfile(user, _a) {
8088
8150
  * @param user - The user.
8089
8151
  * @param newEmail - The new email address.
8090
8152
  *
8153
+ * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
8154
+ * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
8155
+ *
8091
8156
  * @public
8092
8157
  */
8093
8158
  function updateEmail(user, newEmail) {
@@ -8465,6 +8530,18 @@ function updateCurrentUser(auth, user) {
8465
8530
  function signOut(auth) {
8466
8531
  return getModularInstance(auth).signOut();
8467
8532
  }
8533
+ /**
8534
+ * Revokes the given access token. Currently only supports Apple OAuth access tokens.
8535
+ *
8536
+ * @param auth - The {@link Auth} instance.
8537
+ * @param token - The Apple OAuth access token.
8538
+ *
8539
+ * @public
8540
+ */
8541
+ function revokeAccessToken(auth, token) {
8542
+ var authInternal = _castAuth(auth);
8543
+ return authInternal.revokeAccessToken(token);
8544
+ }
8468
8545
  /**
8469
8546
  * Deletes and signs out the user.
8470
8547
  *
@@ -8794,7 +8871,7 @@ function multiFactor(user) {
8794
8871
  }
8795
8872
 
8796
8873
  var name = "@firebase/auth";
8797
- var version = "1.3.2";
8874
+ var version = "1.4.0-canary.00235ba68";
8798
8875
 
8799
8876
  /**
8800
8877
  * @license
@@ -10997,5 +11074,5 @@ function generateNoEvent() {
10997
11074
  };
10998
11075
  }
10999
11076
 
11000
- export { sendSignInLinkToEmail as $, ActionCodeOperation as A, inMemoryPersistence as B, EmailAuthProvider as C, FacebookAuthProvider as D, EmailAuthCredential as E, FactorId as F, GoogleAuthProvider as G, GithubAuthProvider as H, OAuthProvider as I, SAMLAuthProvider as J, signInAnonymously as K, signInWithCredential as L, linkWithCredential as M, reauthenticateWithCredential as N, OperationType as O, ProviderId as P, signInWithCustomToken as Q, sendPasswordResetEmail as R, SignInMethod as S, TwitterAuthProvider as T, confirmPasswordReset as U, applyActionCode as V, checkActionCode as W, verifyPasswordResetCode as X, createUserWithEmailAndPassword as Y, signInWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, _getClientVersion as a$, isSignInWithEmailLink as a0, signInWithEmailLink as a1, fetchSignInMethodsForEmail as a2, sendEmailVerification as a3, verifyBeforeUpdateEmail as a4, ActionCodeURL as a5, parseActionCodeURL as a6, updateProfile as a7, updateEmail as a8, updatePassword as a9, AbstractPopupRedirectOperation as aA, _assertInstanceOf as aB, _withDefaultResolver as aC, FederatedAuthProvider as aD, _fail as aE, _getProjectConfig as aF, _getCurrentUrl as aG, _emulatorUrl as aH, _isChromeIOS as aI, _isFirefox as aJ, _isIOSStandalone as aK, _getRedirectUrl as aL, _setWindowLocation as aM, _isMobileBrowser as aN, _isSafari as aO, _isIOS as aP, _getRedirectResult as aQ, _overrideRedirectResult as aR, AuthEventManager as aS, debugFail as aT, finalizeEnrollPhoneMfa as aU, finalizeEnrollTotpMfa as aV, startEnrollTotpMfa as aW, _persistenceKeyName as aX, UserImpl as aY, _getInstance as aZ, AuthImpl as a_, getIdToken as aa, getIdTokenResult as ab, unlink as ac, getAdditionalUserInfo as ad, reload as ae, getMultiFactorResolver as af, multiFactor as ag, _performApiRequest as ah, _addTidIfNecessary as ai, _assert as aj, Delay as ak, _window as al, isV2 as am, _createError as an, _loadJS as ao, _generateCallbackName as ap, getRecaptchaParams as aq, _isHttpOrHttps as ar, _isWorker as as, _castAuth as at, _assertLinkedStatus as au, sendPhoneVerificationCode as av, startEnrollPhoneMfa as aw, _link$1 as ax, debugAssert as ay, _generateEventId as az, _linkWithRedirect as b, FetchProvider as b0, SAMLAuthCredential as b1, signInWithRedirect as b2, linkWithRedirect as b3, reauthenticateWithRedirect as b4, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, deleteUser as n, onIdTokenChanged as o, debugErrorMap as p, prodErrorMap as q, registerAuth as r, setPersistence as s, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as t, useDeviceLanguage as u, validatePassword as v, connectAuthEmulator as w, AuthCredential as x, OAuthCredential as y, PhoneAuthCredential as z };
11001
- //# sourceMappingURL=popup_redirect-a9365a6c.js.map
11077
+ export { signInWithEmailAndPassword as $, ActionCodeOperation as A, PhoneAuthCredential as B, inMemoryPersistence as C, EmailAuthProvider as D, EmailAuthCredential as E, FactorId as F, FacebookAuthProvider as G, GoogleAuthProvider as H, GithubAuthProvider as I, OAuthProvider as J, SAMLAuthProvider as K, signInAnonymously as L, signInWithCredential as M, linkWithCredential as N, OperationType as O, ProviderId as P, reauthenticateWithCredential as Q, signInWithCustomToken as R, SignInMethod as S, TwitterAuthProvider as T, sendPasswordResetEmail as U, confirmPasswordReset as V, applyActionCode as W, checkActionCode as X, verifyPasswordResetCode as Y, createUserWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, AuthImpl as a$, sendSignInLinkToEmail as a0, isSignInWithEmailLink as a1, signInWithEmailLink as a2, fetchSignInMethodsForEmail as a3, sendEmailVerification as a4, verifyBeforeUpdateEmail as a5, ActionCodeURL as a6, parseActionCodeURL as a7, updateProfile as a8, updateEmail as a9, _generateEventId as aA, AbstractPopupRedirectOperation as aB, _assertInstanceOf as aC, _withDefaultResolver as aD, FederatedAuthProvider as aE, _fail as aF, _getProjectConfig as aG, _getCurrentUrl as aH, _emulatorUrl as aI, _isChromeIOS as aJ, _isFirefox as aK, _isIOSStandalone as aL, _getRedirectUrl as aM, _setWindowLocation as aN, _isMobileBrowser as aO, _isSafari as aP, _isIOS as aQ, _getRedirectResult as aR, _overrideRedirectResult as aS, AuthEventManager as aT, debugFail as aU, finalizeEnrollPhoneMfa as aV, finalizeEnrollTotpMfa as aW, startEnrollTotpMfa as aX, _persistenceKeyName as aY, UserImpl as aZ, _getInstance as a_, updatePassword as aa, getIdToken as ab, getIdTokenResult as ac, unlink as ad, getAdditionalUserInfo as ae, reload as af, getMultiFactorResolver as ag, multiFactor as ah, _performApiRequest as ai, _addTidIfNecessary as aj, _assert as ak, Delay as al, _window as am, isV2 as an, _createError as ao, _loadJS as ap, _generateCallbackName as aq, getRecaptchaParams as ar, _isHttpOrHttps as as, _isWorker as at, _castAuth as au, _assertLinkedStatus as av, sendPhoneVerificationCode as aw, startEnrollPhoneMfa as ax, _link$1 as ay, debugAssert as az, _linkWithRedirect as b, _getClientVersion as b0, FetchProvider as b1, SAMLAuthCredential as b2, signInWithRedirect as b3, linkWithRedirect as b4, reauthenticateWithRedirect as b5, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, revokeAccessToken as n, onIdTokenChanged as o, deleteUser as p, debugErrorMap as q, registerAuth as r, setPersistence as s, prodErrorMap as t, useDeviceLanguage as u, validatePassword as v, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as w, connectAuthEmulator as x, AuthCredential as y, OAuthCredential as z };
11078
+ //# sourceMappingURL=popup_redirect-599b3914.js.map