Skip to content

Commit 00882e8

Browse files
authored
feat(backend): Mark setPasswordCompromised and unsetPasswordCompromised as stable (#7504)
1 parent 6bf97ae commit 00882e8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/curly-hornets-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': patch
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
@@ -237,7 +237,7 @@ export const createUserService = (clerkClient: ClerkClient) => {
237237
} satisfies FakeAPIKey;
238238
},
239239
setPasswordCompromised: async (userId: string) => {
240-
await clerkClient.users.__experimental_setPasswordCompromised(userId);
240+
await clerkClient.users.setPasswordCompromised(userId);
241241
},
242242
};
243243

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)