Skip to content

Commit d4e2739

Browse files
authored
feat(backend): Mark setPasswordCompromised and unsetPasswordCompromised as stable (#7503)
1 parent 2cd4da9 commit d4e2739

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/tasty-eyes-take.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': minor
3+
---
4+
5+
Dropping the `__experimental_` prefix from `setPasswordCompromised` and `unsetPasswordCompromised` and marking them as stable

integration/testUtils/usersService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const createUserService = (clerkClient: ClerkClient) => {
213213
} satisfies FakeAPIKey;
214214
},
215215
setPasswordCompromised: async (userId: string) => {
216-
await clerkClient.users.__experimental_setPasswordCompromised(userId);
216+
await clerkClient.users.setPasswordCompromised(userId);
217217
},
218218
};
219219

packages/backend/src/api/endpoints/UserApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class UserAPI extends AbstractAPI {
452452
});
453453
}
454454

455-
public async __experimental_setPasswordCompromised(
455+
public async setPasswordCompromised(
456456
userId: string,
457457
params: SetPasswordCompromisedParams = {
458458
revokeAllSessions: false,
@@ -466,7 +466,7 @@ export class UserAPI extends AbstractAPI {
466466
});
467467
}
468468

469-
public async __experimental_unsetPasswordCompromised(userId: string) {
469+
public async unsetPasswordCompromised(userId: string) {
470470
this.requireId(userId);
471471
return this.request<User>({
472472
method: 'POST',

0 commit comments

Comments
 (0)