Skip to content

Commit 7366d83

Browse files
committed
fix(clerk-js,localizations,backend): Rename passwordUntrusted to passwordCompromised (#7352)
1 parent 66f44eb commit 7366d83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+200
-31
lines changed

.changeset/honest-pigs-move.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+
Rename `__experimental_passwordUntrusted` to `__experimental_passwordCompromised`

.changeset/moody-dryers-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/localizations': patch
3+
---
4+
5+
Deprecating `passwordUntrusted` in favour of `passwordCompromised` and `form_password_untrusted__sign_in` to `form_password_compromised__sign_in`

.changeset/some-phones-report.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/shared': patch
4+
---
5+
6+
Rename internal `isPasswordUntrustedError` to `isPasswordCompromisedError`

integration/testUtils/usersService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export type UserService = {
7676
createFakeOrganization: (userId: string) => Promise<FakeOrganization>;
7777
getUser: (opts: { id?: string; email?: string }) => Promise<User | undefined>;
7878
createFakeAPIKey: (userId: string) => Promise<FakeAPIKey>;
79-
passwordUntrusted: (userId: string) => Promise<void>;
79+
passwordCompromised: (userId: string) => Promise<void>;
8080
};
8181

8282
/**
@@ -211,8 +211,8 @@ export const createUserService = (clerkClient: ClerkClient) => {
211211
revoke: () => clerkClient.apiKeys.revoke({ apiKeyId: apiKey.id, revocationReason: 'For testing purposes' }),
212212
} satisfies FakeAPIKey;
213213
},
214-
passwordUntrusted: async (userId: string) => {
215-
await clerkClient.users.__experimental_passwordUntrusted(userId);
214+
passwordCompromised: async (userId: string) => {
215+
await clerkClient.users.__experimental_passwordCompromised(userId);
216216
},
217217
};
218218

integration/tests/session-tasks-sign-in-reset-password.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
1919
const user = u.services.users.createFakeUser();
2020
const createdUser = await u.services.users.createBapiUser(user);
2121

22-
await u.services.users.passwordUntrusted(createdUser.id);
22+
await u.services.users.passwordCompromised(createdUser.id);
2323

2424
// Performs sign-in
2525
await u.po.signIn.goTo();
@@ -66,7 +66,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
6666
const user = u.services.users.createFakeUser();
6767
const createdUser = await u.services.users.createBapiUser(user);
6868

69-
await u.services.users.passwordUntrusted(createdUser.id);
69+
await u.services.users.passwordCompromised(createdUser.id);
7070
const fakeOrganization = u.services.organizations.createFakeOrganization();
7171
await u.services.organizations.createBapiOrganization({
7272
name: fakeOrganization.name,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ export class UserAPI extends AbstractAPI {
448448
});
449449
}
450450

451-
public async __experimental_passwordUntrusted(userId: string) {
451+
public async __experimental_passwordCompromised(userId: string) {
452452
this.requireId(userId);
453453
return this.request<User>({
454454
method: 'POST',
455-
path: joinPaths(basePath, userId, 'password_untrusted'),
455+
path: joinPaths(basePath, userId, 'password_compromised'),
456456
bodyParams: {
457457
revokeAllSessions: false,
458458
},

packages/localizations/src/ar-SA.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ export const arSA: LocalizationResource = {
690690
subtitle: 'للمتابعة إلى {{applicationName}}',
691691
title: 'ادخل كلمة المرور',
692692
},
693+
passwordCompromised: {
694+
title: undefined,
695+
},
693696
passwordPwned: {
694697
title: 'كلمة المرور غير آمنة',
695698
},

packages/localizations/src/be-BY.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ export const beBY: LocalizationResource = {
697697
subtitle: 'каб працягнуць працу ў "{{applicationName}}"',
698698
title: 'Увядзіце пароль',
699699
},
700+
passwordCompromised: {
701+
title: undefined,
702+
},
700703
passwordPwned: {
701704
title: 'Пароль быў узламаны',
702705
},

packages/localizations/src/bg-BG.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ export const bgBG: LocalizationResource = {
693693
subtitle: 'Въведете паролата, свързана с вашия акаунт',
694694
title: 'Въведете вашата парола',
695695
},
696+
passwordCompromised: {
697+
title: undefined,
698+
},
696699
passwordPwned: {
697700
title: undefined,
698701
},

packages/localizations/src/bn-IN.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,9 @@ export const bnIN: LocalizationResource = {
696696
subtitle: 'আপনার অ্যাকাউন্টের সাথে যুক্ত পাসওয়ার্ড লিখুন',
697697
title: 'আপনার পাসওয়ার্ড লিখুন',
698698
},
699+
passwordCompromised: {
700+
title: undefined,
701+
},
699702
passwordPwned: {
700703
title: 'পাসওয়ার্ড সমঝোতা হয়েছে',
701704
},

0 commit comments

Comments
 (0)