Skip to content

Commit 9514618

Browse files
authored
chore(types): Drop password property from UserJSON (#1805)
* chore(types): Drop `password` property from UserJSON There is no reference in the FAPI OpenAPI responses of /v1/me about password field. The password is only used as part of the UpdateUserParams type, so i moved it there * Create friendly-gorillas-smash.md
1 parent 68259a2 commit 9514618

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/types": patch
3+
---
4+
5+
Drop `password` property from `UserJSON` since it's not being returned by the Frontend API

packages/types/src/json.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ export interface UserJSON extends ClerkResourceJSON {
204204

205205
organization_memberships: OrganizationMembershipJSON[];
206206
password_enabled: boolean;
207-
/**
208-
* @deprecated This will be removed in the next major version
209-
*/
210-
password: string;
211207
profile_image_id: string;
212208
first_name: string;
213209
last_name: string;

packages/types/src/user.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export type VerifyTOTPParams = { code: string };
140140
type UpdateUserJSON = Pick<
141141
UserJSON,
142142
| 'username'
143-
| 'password'
144143
| 'first_name'
145144
| 'last_name'
146145
| 'primary_email_address_id'

0 commit comments

Comments
 (0)