@clerk/backend 3.12.0-snapshot.v20260720201619 → 3.12.0
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/api/endpoints/AgentTaskApi.d.ts +1 -1
- package/dist/api/endpoints/AgentTaskApi.d.ts.map +1 -1
- package/dist/api/endpoints/AllowlistIdentifierApi.d.ts +1 -1
- package/dist/api/endpoints/AllowlistIdentifierApi.d.ts.map +1 -1
- package/dist/api/endpoints/DomainApi.d.ts +1 -1
- package/dist/api/endpoints/EnterpriseConnectionApi.d.ts +59 -6
- package/dist/api/endpoints/EnterpriseConnectionApi.d.ts.map +1 -1
- package/dist/api/endpoints/InstanceApi.d.ts +1 -1
- package/dist/api/endpoints/InstanceApi.d.ts.map +1 -1
- package/dist/api/endpoints/InvitationApi.d.ts +1 -1
- package/dist/api/endpoints/UserApi.d.ts +9 -9
- package/dist/api/endpoints/UserApi.d.ts.map +1 -1
- package/dist/api/resources/ExternalAccount.d.ts +1 -1
- package/dist/api/resources/RedirectUrl.d.ts +1 -1
- package/dist/{chunk-H2LJOXRT.mjs → chunk-XPQZDI25.mjs} +10 -13
- package/dist/chunk-XPQZDI25.mjs.map +1 -0
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal.js +9 -12
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/tokens/authenticateContext.d.ts +4 -4
- package/dist/tokens/authenticateContext.d.ts.map +1 -1
- package/dist/tokens/types.d.ts +1 -1
- package/dist/tokens/verify.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-H2LJOXRT.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -983,7 +983,7 @@ var InvitationAPI = class extends AbstractAPI {
|
|
|
983
983
|
*
|
|
984
984
|
* Revoking an invitation makes the invitation email link unusable. However, it doesn't prevent the user from signing up if they follow the sign up flow.
|
|
985
985
|
*
|
|
986
|
-
* Only active (i.e
|
|
986
|
+
* Only active (i.e., non-revoked) invitations can be revoked.
|
|
987
987
|
* @param invitationId - The ID of the invitation to revoke.
|
|
988
988
|
* @returns The revoked [`Invitation`](https://clerk.com/docs/reference/backend/types/backend-invitation).
|
|
989
989
|
*/
|
|
@@ -1697,7 +1697,7 @@ var M2MToken = class _M2MToken {
|
|
|
1697
1697
|
// src/constants.ts
|
|
1698
1698
|
var API_URL = "https://api.clerk.com";
|
|
1699
1699
|
var API_VERSION = "v1";
|
|
1700
|
-
var USER_AGENT = `${"@clerk/backend"}@${"3.12.0
|
|
1700
|
+
var USER_AGENT = `${"@clerk/backend"}@${"3.12.0"}`;
|
|
1701
1701
|
var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
|
|
1702
1702
|
var SUPPORTED_BAPI_VERSION = "2026-05-12";
|
|
1703
1703
|
var Attributes = {
|
|
@@ -3367,7 +3367,7 @@ var UserAPI = class extends AbstractAPI {
|
|
|
3367
3367
|
});
|
|
3368
3368
|
}
|
|
3369
3369
|
/**
|
|
3370
|
-
* Disable all of a user's MFA methods (e.g
|
|
3370
|
+
* Disable all of a user's MFA methods (e.g., [OTP](!otp) sent via SMS, TOTP on their authenticator app) at once.
|
|
3371
3371
|
* @param userId - The ID of the user to disable MFA for.
|
|
3372
3372
|
*/
|
|
3373
3373
|
async disableUserMFA(userId) {
|
|
@@ -3413,7 +3413,7 @@ var UserAPI = class extends AbstractAPI {
|
|
|
3413
3413
|
bodyParams: { password }
|
|
3414
3414
|
});
|
|
3415
3415
|
}
|
|
3416
|
-
/** Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e
|
|
3416
|
+
/** Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e., it will become invalid). Useful for custom auth flows and re-verification. */
|
|
3417
3417
|
async verifyTOTP(params) {
|
|
3418
3418
|
const { userId, code } = params;
|
|
3419
3419
|
this.requireId(userId);
|
|
@@ -6161,11 +6161,11 @@ var AuthenticateContext = class {
|
|
|
6161
6161
|
}
|
|
6162
6162
|
}
|
|
6163
6163
|
/**
|
|
6164
|
-
* Determines if the referrer URL is from a Clerk domain
|
|
6165
|
-
*
|
|
6166
|
-
*
|
|
6164
|
+
* Determines if the referrer URL is from a Clerk domain: the instance's FAPI domain, the accounts
|
|
6165
|
+
* portal derived from its frontend API, or — on non-production instances only — a development
|
|
6166
|
+
* account-portal domain.
|
|
6167
6167
|
*
|
|
6168
|
-
* @returns {boolean} True if the referrer is
|
|
6168
|
+
* @returns {boolean} True if the referrer is a trusted Clerk domain, false otherwise
|
|
6169
6169
|
*/
|
|
6170
6170
|
isKnownClerkReferrer() {
|
|
6171
6171
|
if (!this.referrer) {
|
|
@@ -6180,7 +6180,7 @@ var AuthenticateContext = class {
|
|
|
6180
6180
|
return true;
|
|
6181
6181
|
}
|
|
6182
6182
|
}
|
|
6183
|
-
if ((0, import_url2.isLegacyDevAccountPortalOrigin)(referrerHost) || (0, import_url2.isCurrentDevAccountPortalOrigin)(referrerHost)) {
|
|
6183
|
+
if (this.instanceType !== "production" && ((0, import_url2.isLegacyDevAccountPortalOrigin)(referrerHost) || (0, import_url2.isCurrentDevAccountPortalOrigin)(referrerHost))) {
|
|
6184
6184
|
return true;
|
|
6185
6185
|
}
|
|
6186
6186
|
const expectedAccountsUrl = (0, import_buildAccountsBaseUrl.buildAccountsBaseUrl)(this.frontendApi);
|
|
@@ -6190,9 +6190,6 @@ var AuthenticateContext = class {
|
|
|
6190
6190
|
return true;
|
|
6191
6191
|
}
|
|
6192
6192
|
}
|
|
6193
|
-
if (referrerHost.startsWith("accounts.")) {
|
|
6194
|
-
return true;
|
|
6195
|
-
}
|
|
6196
6193
|
return false;
|
|
6197
6194
|
} catch {
|
|
6198
6195
|
return false;
|