diff --git a/.changeset/curly-hornets-argue.md b/.changeset/curly-hornets-argue.md new file mode 100644 index 00000000000..1397b35b661 --- /dev/null +++ b/.changeset/curly-hornets-argue.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Dropping the `__experimental_` prefix from `setPasswordCompromised` and `unsetPasswordCompromised` and marking them as stable diff --git a/integration/testUtils/usersService.ts b/integration/testUtils/usersService.ts index e8b0f058675..922c2da73ae 100644 --- a/integration/testUtils/usersService.ts +++ b/integration/testUtils/usersService.ts @@ -237,7 +237,7 @@ export const createUserService = (clerkClient: ClerkClient) => { } satisfies FakeAPIKey; }, setPasswordCompromised: async (userId: string) => { - await clerkClient.users.__experimental_setPasswordCompromised(userId); + await clerkClient.users.setPasswordCompromised(userId); }, }; diff --git a/packages/backend/src/api/endpoints/UserApi.ts b/packages/backend/src/api/endpoints/UserApi.ts index a24c3ec4f23..38f31670827 100644 --- a/packages/backend/src/api/endpoints/UserApi.ts +++ b/packages/backend/src/api/endpoints/UserApi.ts @@ -452,7 +452,7 @@ export class UserAPI extends AbstractAPI { }); } - public async __experimental_setPasswordCompromised( + public async setPasswordCompromised( userId: string, params: SetPasswordCompromisedParams = { revokeAllSessions: false, @@ -466,7 +466,7 @@ export class UserAPI extends AbstractAPI { }); } - public async __experimental_unsetPasswordCompromised(userId: string) { + public async unsetPasswordCompromised(userId: string) { this.requireId(userId); return this.request({ method: 'POST',