@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.
- package/dist/auth-public.d.ts +24 -2
- package/dist/auth.d.ts +26 -3
- package/dist/browser-cjs/{index-770706ba.js → index-d50ad728.js} +68 -11
- package/dist/browser-cjs/index-d50ad728.js.map +1 -0
- package/dist/browser-cjs/index.js +2 -1
- package/dist/browser-cjs/index.js.map +1 -1
- package/dist/browser-cjs/internal.js +2 -1
- package/dist/browser-cjs/internal.js.map +1 -1
- package/dist/browser-cjs/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/browser-cjs/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/browser-cjs/src/api/authentication/token.d.ts +13 -2
- package/dist/browser-cjs/src/api/errors.d.ts +1 -0
- package/dist/browser-cjs/src/api/index.d.ts +3 -1
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/browser-cjs/src/core/errors.d.ts +2 -1
- package/dist/browser-cjs/src/core/index.d.ts +9 -0
- package/dist/browser-cjs/src/core/strategies/email.d.ts +5 -1
- package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -0
- package/dist/browser-cjs/src/model/auth.d.ts +1 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-a9365a6c.js → popup_redirect-599b3914.js} +92 -15
- package/dist/cordova/popup_redirect-599b3914.js.map +1 -0
- package/dist/cordova/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/cordova/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/cordova/src/api/authentication/token.d.ts +13 -2
- package/dist/cordova/src/api/errors.d.ts +1 -0
- package/dist/cordova/src/api/index.d.ts +3 -1
- package/dist/cordova/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/cordova/src/core/errors.d.ts +2 -1
- package/dist/cordova/src/core/index.d.ts +9 -0
- package/dist/cordova/src/core/strategies/email.d.ts +5 -1
- package/dist/cordova/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/cordova/src/core/user/account_info.d.ts +3 -0
- package/dist/cordova/src/model/auth.d.ts +1 -0
- package/dist/esm2017/{index-94e5f531.js → index-2b54b271.js} +68 -12
- package/dist/esm2017/index-2b54b271.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/esm2017/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/esm2017/src/api/authentication/token.d.ts +13 -2
- package/dist/esm2017/src/api/errors.d.ts +1 -0
- package/dist/esm2017/src/api/index.d.ts +3 -1
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/esm2017/src/core/errors.d.ts +2 -1
- package/dist/esm2017/src/core/index.d.ts +9 -0
- package/dist/esm2017/src/core/strategies/email.d.ts +5 -1
- package/dist/esm2017/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/esm2017/src/core/user/account_info.d.ts +3 -0
- package/dist/esm2017/src/model/auth.d.ts +1 -0
- package/dist/esm5/{index-7b6c682b.js → index-ab0a3e4e.js} +92 -15
- package/dist/esm5/index-ab0a3e4e.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/esm5/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/esm5/src/api/authentication/token.d.ts +13 -2
- package/dist/esm5/src/api/errors.d.ts +1 -0
- package/dist/esm5/src/api/index.d.ts +3 -1
- package/dist/esm5/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/esm5/src/core/errors.d.ts +2 -1
- package/dist/esm5/src/core/index.d.ts +9 -0
- package/dist/esm5/src/core/strategies/email.d.ts +5 -1
- package/dist/esm5/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/esm5/src/core/user/account_info.d.ts +3 -0
- package/dist/esm5/src/model/auth.d.ts +1 -0
- package/dist/index.webworker.esm5.js +91 -14
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +3 -2
- package/dist/node/index.js.map +1 -1
- package/dist/node/internal.js +3 -2
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/node/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/node/src/api/authentication/token.d.ts +13 -2
- package/dist/node/src/api/errors.d.ts +1 -0
- package/dist/node/src/api/index.d.ts +3 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/node/src/core/errors.d.ts +2 -1
- package/dist/node/src/core/index.d.ts +9 -0
- package/dist/node/src/core/strategies/email.d.ts +5 -1
- package/dist/node/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/node/src/core/user/account_info.d.ts +3 -0
- package/dist/node/src/model/auth.d.ts +1 -0
- package/dist/node/{totp-24a79064.js → totp-b6ed1d9d.js} +94 -36
- package/dist/node/totp-b6ed1d9d.js.map +1 -0
- package/dist/node-esm/index.js +2 -2
- package/dist/node-esm/internal.js +3 -3
- package/dist/node-esm/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/node-esm/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/node-esm/src/api/authentication/token.d.ts +13 -2
- package/dist/node-esm/src/api/errors.d.ts +1 -0
- package/dist/node-esm/src/api/index.d.ts +3 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/node-esm/src/core/errors.d.ts +2 -1
- package/dist/node-esm/src/core/index.d.ts +9 -0
- package/dist/node-esm/src/core/strategies/email.d.ts +5 -1
- package/dist/node-esm/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/node-esm/src/core/user/account_info.d.ts +3 -0
- package/dist/node-esm/src/model/auth.d.ts +1 -0
- package/dist/node-esm/{totp-a0f18007.js → totp-aa0a9277.js} +70 -14
- package/dist/node-esm/totp-aa0a9277.js.map +1 -0
- package/dist/rn/{index-3d9ec48b.js → index-943ed676.js} +92 -14
- package/dist/rn/index-943ed676.js.map +1 -0
- package/dist/rn/index.js +2 -1
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +2 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/rn/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/rn/src/api/authentication/token.d.ts +13 -2
- package/dist/rn/src/api/errors.d.ts +1 -0
- package/dist/rn/src/api/index.d.ts +3 -1
- package/dist/rn/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/rn/src/core/errors.d.ts +2 -1
- package/dist/rn/src/core/index.d.ts +9 -0
- package/dist/rn/src/core/strategies/email.d.ts +5 -1
- package/dist/rn/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/rn/src/core/user/account_info.d.ts +3 -0
- package/dist/rn/src/model/auth.d.ts +1 -0
- package/dist/src/api/account_management/email_and_password.d.ts +2 -0
- package/dist/src/api/authentication/sign_up.d.ts +1 -0
- package/dist/src/api/authentication/token.d.ts +13 -2
- package/dist/src/api/errors.d.ts +1 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/core/auth/auth_impl.d.ts +4 -0
- package/dist/src/core/errors.d.ts +2 -1
- package/dist/src/core/index.d.ts +9 -0
- package/dist/src/core/strategies/email.d.ts +5 -1
- package/dist/src/core/strategies/email_and_password.d.ts +5 -1
- package/dist/src/core/user/account_info.d.ts +3 -0
- package/dist/src/model/auth.d.ts +1 -0
- package/package.json +7 -7
- package/dist/browser-cjs/index-770706ba.js.map +0 -1
- package/dist/cordova/popup_redirect-a9365a6c.js.map +0 -1
- package/dist/esm2017/index-94e5f531.js.map +0 -1
- package/dist/esm5/index-7b6c682b.js.map +0 -1
- package/dist/node/totp-24a79064.js.map +0 -1
- package/dist/node-esm/totp-a0f18007.js.map +0 -1
- package/dist/rn/index-3d9ec48b.js.map +0 -1
|
@@ -78,7 +78,7 @@ function _debugErrorMap() {
|
|
|
78
78
|
_a["invalid-emulator-scheme" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */] = 'Emulator URL must start with a valid scheme (http:// or https://).',
|
|
79
79
|
_a["invalid-api-key" /* AuthErrorCode.INVALID_API_KEY */] = 'Your API key is invalid, please check you have copied it correctly.',
|
|
80
80
|
_a["invalid-cert-hash" /* AuthErrorCode.INVALID_CERT_HASH */] = 'The SHA-1 certificate hash provided is invalid.',
|
|
81
|
-
_a["invalid-credential" /* AuthErrorCode.
|
|
81
|
+
_a["invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */] = 'The supplied auth credential is incorrect, malformed or has expired.',
|
|
82
82
|
_a["invalid-message-payload" /* AuthErrorCode.INVALID_MESSAGE_PAYLOAD */] = 'The email template corresponding to this action contains invalid characters in its message. ' +
|
|
83
83
|
'Please fix by going to the Auth email templates section in the Firebase Console.',
|
|
84
84
|
_a["invalid-multi-factor-session" /* AuthErrorCode.INVALID_MFA_SESSION */] = 'The request does not contain a valid proof of first factor successful sign-in.',
|
|
@@ -255,6 +255,7 @@ var AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
|
|
|
255
255
|
INVALID_EMAIL: 'auth/invalid-email',
|
|
256
256
|
INVALID_EMULATOR_SCHEME: 'auth/invalid-emulator-scheme',
|
|
257
257
|
INVALID_IDP_RESPONSE: 'auth/invalid-credential',
|
|
258
|
+
INVALID_LOGIN_CREDENTIALS: 'auth/invalid-credential',
|
|
258
259
|
INVALID_MESSAGE_PAYLOAD: 'auth/invalid-message-payload',
|
|
259
260
|
INVALID_MFA_SESSION: 'auth/invalid-multi-factor-session',
|
|
260
261
|
INVALID_OAUTH_CLIENT_ID: 'auth/invalid-oauth-client-id',
|
|
@@ -720,12 +721,15 @@ var SERVER_ERROR_MAP = (_a$1 = {},
|
|
|
720
721
|
_a$1["INVALID_PASSWORD" /* ServerError.INVALID_PASSWORD */] = "wrong-password" /* AuthErrorCode.INVALID_PASSWORD */,
|
|
721
722
|
// This can only happen if the SDK sends a bad request.
|
|
722
723
|
_a$1["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */] = "missing-password" /* AuthErrorCode.MISSING_PASSWORD */,
|
|
724
|
+
// Thrown if Email Enumeration Protection is enabled in the project and the email or password is
|
|
725
|
+
// invalid.
|
|
726
|
+
_a$1["INVALID_LOGIN_CREDENTIALS" /* ServerError.INVALID_LOGIN_CREDENTIALS */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
|
|
723
727
|
// Sign up with email and password errors.
|
|
724
728
|
_a$1["EMAIL_EXISTS" /* ServerError.EMAIL_EXISTS */] = "email-already-in-use" /* AuthErrorCode.EMAIL_EXISTS */,
|
|
725
729
|
_a$1["PASSWORD_LOGIN_DISABLED" /* ServerError.PASSWORD_LOGIN_DISABLED */] = "operation-not-allowed" /* AuthErrorCode.OPERATION_NOT_ALLOWED */,
|
|
726
730
|
// Verify assertion for sign in with credential errors:
|
|
727
|
-
_a$1["INVALID_IDP_RESPONSE" /* ServerError.INVALID_IDP_RESPONSE */] = "invalid-credential" /* AuthErrorCode.
|
|
728
|
-
_a$1["INVALID_PENDING_TOKEN" /* ServerError.INVALID_PENDING_TOKEN */] = "invalid-credential" /* AuthErrorCode.
|
|
731
|
+
_a$1["INVALID_IDP_RESPONSE" /* ServerError.INVALID_IDP_RESPONSE */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
|
|
732
|
+
_a$1["INVALID_PENDING_TOKEN" /* ServerError.INVALID_PENDING_TOKEN */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
|
|
729
733
|
_a$1["FEDERATED_USER_ID_ALREADY_LINKED" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */] = "credential-already-in-use" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */,
|
|
730
734
|
// This can only happen if the SDK sends a bad request.
|
|
731
735
|
_a$1["MISSING_REQ_TYPE" /* ServerError.MISSING_REQ_TYPE */] = "internal-error" /* AuthErrorCode.INTERNAL_ERROR */,
|
|
@@ -747,7 +751,7 @@ var SERVER_ERROR_MAP = (_a$1 = {},
|
|
|
747
751
|
// Phone Auth related errors.
|
|
748
752
|
_a$1["INVALID_CODE" /* ServerError.INVALID_CODE */] = "invalid-verification-code" /* AuthErrorCode.INVALID_CODE */,
|
|
749
753
|
_a$1["INVALID_SESSION_INFO" /* ServerError.INVALID_SESSION_INFO */] = "invalid-verification-id" /* AuthErrorCode.INVALID_SESSION_INFO */,
|
|
750
|
-
_a$1["INVALID_TEMPORARY_PROOF" /* ServerError.INVALID_TEMPORARY_PROOF */] = "invalid-credential" /* AuthErrorCode.
|
|
754
|
+
_a$1["INVALID_TEMPORARY_PROOF" /* ServerError.INVALID_TEMPORARY_PROOF */] = "invalid-credential" /* AuthErrorCode.INVALID_CREDENTIAL */,
|
|
751
755
|
_a$1["MISSING_SESSION_INFO" /* ServerError.MISSING_SESSION_INFO */] = "missing-verification-id" /* AuthErrorCode.MISSING_SESSION_INFO */,
|
|
752
756
|
_a$1["SESSION_EXPIRED" /* ServerError.SESSION_EXPIRED */] = "code-expired" /* AuthErrorCode.CODE_EXPIRED */,
|
|
753
757
|
// Other action code errors when additional settings passed.
|
|
@@ -1631,6 +1635,13 @@ function requestStsToken(auth, refreshToken) {
|
|
|
1631
1635
|
}
|
|
1632
1636
|
});
|
|
1633
1637
|
});
|
|
1638
|
+
}
|
|
1639
|
+
function revokeToken(auth, request) {
|
|
1640
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
1641
|
+
return tslib.__generator(this, function (_a) {
|
|
1642
|
+
return [2 /*return*/, _performApiRequest(auth, "POST" /* HttpMethod.POST */, "/v2/accounts:revokeToken" /* Endpoint.REVOKE_TOKEN */, _addTidIfNecessary(auth, request))];
|
|
1643
|
+
});
|
|
1644
|
+
});
|
|
1634
1645
|
}
|
|
1635
1646
|
|
|
1636
1647
|
/**
|
|
@@ -3233,6 +3244,37 @@ var AuthImpl = /** @class */ (function () {
|
|
|
3233
3244
|
}
|
|
3234
3245
|
});
|
|
3235
3246
|
};
|
|
3247
|
+
/**
|
|
3248
|
+
* Revokes the given access token. Currently only supports Apple OAuth access tokens.
|
|
3249
|
+
*/
|
|
3250
|
+
AuthImpl.prototype.revokeAccessToken = function (token) {
|
|
3251
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
3252
|
+
var idToken, request;
|
|
3253
|
+
return tslib.__generator(this, function (_a) {
|
|
3254
|
+
switch (_a.label) {
|
|
3255
|
+
case 0:
|
|
3256
|
+
if (!this.currentUser) return [3 /*break*/, 3];
|
|
3257
|
+
return [4 /*yield*/, this.currentUser.getIdToken()];
|
|
3258
|
+
case 1:
|
|
3259
|
+
idToken = _a.sent();
|
|
3260
|
+
request = {
|
|
3261
|
+
providerId: 'apple.com',
|
|
3262
|
+
tokenType: "ACCESS_TOKEN" /* TokenType.ACCESS_TOKEN */,
|
|
3263
|
+
token: token,
|
|
3264
|
+
idToken: idToken
|
|
3265
|
+
};
|
|
3266
|
+
if (this.tenantId != null) {
|
|
3267
|
+
request.tenantId = this.tenantId;
|
|
3268
|
+
}
|
|
3269
|
+
return [4 /*yield*/, revokeToken(this, request)];
|
|
3270
|
+
case 2:
|
|
3271
|
+
_a.sent();
|
|
3272
|
+
_a.label = 3;
|
|
3273
|
+
case 3: return [2 /*return*/];
|
|
3274
|
+
}
|
|
3275
|
+
});
|
|
3276
|
+
});
|
|
3277
|
+
};
|
|
3236
3278
|
AuthImpl.prototype.toJSON = function () {
|
|
3237
3279
|
var _a;
|
|
3238
3280
|
return {
|
|
@@ -4076,6 +4118,15 @@ function updateEmailPassword(auth, request) {
|
|
|
4076
4118
|
});
|
|
4077
4119
|
});
|
|
4078
4120
|
}
|
|
4121
|
+
// Used for linking an email/password account to an existing idToken. Uses the same request/response
|
|
4122
|
+
// format as updateEmailPassword.
|
|
4123
|
+
function linkEmailPassword(auth, request) {
|
|
4124
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
4125
|
+
return tslib.__generator(this, function (_a) {
|
|
4126
|
+
return [2 /*return*/, _performApiRequest(auth, "POST" /* HttpMethod.POST */, "/v1/accounts:signUp" /* Endpoint.SIGN_UP */, request)];
|
|
4127
|
+
});
|
|
4128
|
+
});
|
|
4129
|
+
}
|
|
4079
4130
|
function applyActionCode$1(auth, request) {
|
|
4080
4131
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
4081
4132
|
return tslib.__generator(this, function (_a) {
|
|
@@ -4284,15 +4335,18 @@ var EmailAuthCredential = /** @class */ (function (_super) {
|
|
|
4284
4335
|
/** @internal */
|
|
4285
4336
|
EmailAuthCredential.prototype._linkToIdToken = function (auth, idToken) {
|
|
4286
4337
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
4338
|
+
var request;
|
|
4287
4339
|
return tslib.__generator(this, function (_a) {
|
|
4288
4340
|
switch (this.signInMethod) {
|
|
4289
4341
|
case "password" /* SignInMethod.EMAIL_PASSWORD */:
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4342
|
+
request = {
|
|
4343
|
+
idToken: idToken,
|
|
4344
|
+
returnSecureToken: true,
|
|
4345
|
+
email: this._email,
|
|
4346
|
+
password: this._password,
|
|
4347
|
+
clientType: "CLIENT_TYPE_WEB" /* RecaptchaClientType.WEB */
|
|
4348
|
+
};
|
|
4349
|
+
return [2 /*return*/, handleRecaptchaFlow(auth, request, "signUpPassword" /* RecaptchaActionName.SIGN_UP_PASSWORD */, linkEmailPassword)];
|
|
4296
4350
|
case "emailLink" /* SignInMethod.EMAIL_LINK */:
|
|
4297
4351
|
return [2 /*return*/, signInWithEmailLinkForLinking(auth, {
|
|
4298
4352
|
idToken: idToken,
|
|
@@ -6462,7 +6516,9 @@ function recachePasswordPolicy(auth) {
|
|
|
6462
6516
|
});
|
|
6463
6517
|
}
|
|
6464
6518
|
/**
|
|
6465
|
-
* Sends a password reset email to the given email address.
|
|
6519
|
+
* Sends a password reset email to the given email address. This method does not throw an error when
|
|
6520
|
+
* there's no user account with the given email address and
|
|
6521
|
+
* [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
|
|
6466
6522
|
*
|
|
6467
6523
|
* @remarks
|
|
6468
6524
|
* To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
|
|
@@ -6703,6 +6759,8 @@ function createUserWithEmailAndPassword(auth, email, password) {
|
|
|
6703
6759
|
*
|
|
6704
6760
|
* @remarks
|
|
6705
6761
|
* Fails with an error if the email address and password do not match.
|
|
6762
|
+
* When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
|
|
6763
|
+
* this method fails with "auth/invalid-credential" in case of an invalid email/password.
|
|
6706
6764
|
*
|
|
6707
6765
|
* Note: The user's password is NOT the password used to access the user's email account. The
|
|
6708
6766
|
* email address serves as a unique identifier for the user, and the password is used to access
|
|
@@ -6911,7 +6969,9 @@ function createAuthUri(auth, request) {
|
|
|
6911
6969
|
* limitations under the License.
|
|
6912
6970
|
*/
|
|
6913
6971
|
/**
|
|
6914
|
-
* Gets the list of possible sign in methods for the given email address.
|
|
6972
|
+
* Gets the list of possible sign in methods for the given email address. This method returns an
|
|
6973
|
+
* empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
|
|
6974
|
+
* authentication methods available for the given email.
|
|
6915
6975
|
*
|
|
6916
6976
|
* @remarks
|
|
6917
6977
|
* This is useful to differentiate methods of sign-in for the same provider, eg.
|
|
@@ -6922,6 +6982,8 @@ function createAuthUri(auth, request) {
|
|
|
6922
6982
|
* @param auth - The {@link Auth} instance.
|
|
6923
6983
|
* @param email - The user's email address.
|
|
6924
6984
|
*
|
|
6985
|
+
* Deprecated. Migrating off of this method is recommended as a security best-practice.
|
|
6986
|
+
* Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
|
|
6925
6987
|
* @public
|
|
6926
6988
|
*/
|
|
6927
6989
|
function fetchSignInMethodsForEmail(auth, email) {
|
|
@@ -7176,6 +7238,9 @@ function updateProfile(user, _a) {
|
|
|
7176
7238
|
* @param user - The user.
|
|
7177
7239
|
* @param newEmail - The new email address.
|
|
7178
7240
|
*
|
|
7241
|
+
* Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
|
|
7242
|
+
* Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
|
|
7243
|
+
*
|
|
7179
7244
|
* @public
|
|
7180
7245
|
*/
|
|
7181
7246
|
function updateEmail(user, newEmail) {
|
|
@@ -7553,6 +7618,18 @@ function updateCurrentUser(auth, user) {
|
|
|
7553
7618
|
function signOut(auth) {
|
|
7554
7619
|
return util.getModularInstance(auth).signOut();
|
|
7555
7620
|
}
|
|
7621
|
+
/**
|
|
7622
|
+
* Revokes the given access token. Currently only supports Apple OAuth access tokens.
|
|
7623
|
+
*
|
|
7624
|
+
* @param auth - The {@link Auth} instance.
|
|
7625
|
+
* @param token - The Apple OAuth access token.
|
|
7626
|
+
*
|
|
7627
|
+
* @public
|
|
7628
|
+
*/
|
|
7629
|
+
function revokeAccessToken(auth, token) {
|
|
7630
|
+
var authInternal = _castAuth(auth);
|
|
7631
|
+
return authInternal.revokeAccessToken(token);
|
|
7632
|
+
}
|
|
7556
7633
|
/**
|
|
7557
7634
|
* Deletes and signs out the user.
|
|
7558
7635
|
*
|
|
@@ -7882,7 +7959,7 @@ function multiFactor(user) {
|
|
|
7882
7959
|
}
|
|
7883
7960
|
|
|
7884
7961
|
var name = "@firebase/auth";
|
|
7885
|
-
var version = "1.
|
|
7962
|
+
var version = "1.4.0-canary.00235ba68";
|
|
7886
7963
|
|
|
7887
7964
|
/**
|
|
7888
7965
|
* @license
|
|
@@ -9517,6 +9594,7 @@ exports.reauthenticateWithCredential = reauthenticateWithCredential;
|
|
|
9517
9594
|
exports.reauthenticateWithPhoneNumber = reauthenticateWithPhoneNumber;
|
|
9518
9595
|
exports.registerAuth = registerAuth;
|
|
9519
9596
|
exports.reload = reload;
|
|
9597
|
+
exports.revokeAccessToken = revokeAccessToken;
|
|
9520
9598
|
exports.sendEmailVerification = sendEmailVerification;
|
|
9521
9599
|
exports.sendPasswordResetEmail = sendPasswordResetEmail;
|
|
9522
9600
|
exports.sendSignInLinkToEmail = sendSignInLinkToEmail;
|
|
@@ -9539,4 +9617,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
9539
9617
|
exports.validatePassword = validatePassword;
|
|
9540
9618
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
9541
9619
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
9542
|
-
//# sourceMappingURL=index-
|
|
9620
|
+
//# sourceMappingURL=index-943ed676.js.map
|