Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tasty-eyes-take.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': minor
---

Dropping the `__experimental_` prefix from `setPasswordCompromised` and `unsetPasswordCompromised` and marking them as stable
2 changes: 1 addition & 1 deletion integration/testUtils/usersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
};

Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/api/endpoints/UserApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export class UserAPI extends AbstractAPI {
});
}

public async __experimental_setPasswordCompromised(
public async setPasswordCompromised(
userId: string,
params: SetPasswordCompromisedParams = {
revokeAllSessions: false,
Expand All @@ -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<User>({
method: 'POST',
Expand Down
Loading