diff --git a/.changeset/tasty-eyes-take.md b/.changeset/tasty-eyes-take.md new file mode 100644 index 00000000000..8ab7f8684b6 --- /dev/null +++ b/.changeset/tasty-eyes-take.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': minor +--- + +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 8c95b000720..cb9abc22da3 100644 --- a/integration/testUtils/usersService.ts +++ b/integration/testUtils/usersService.ts @@ -213,7 +213,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 41803ef3f60..4422ed1a298 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',