Skip to content

Commit

Permalink
chore(types): Drop password property from UserJSON (#1805)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dimkl committed Oct 2, 2023
1 parent 68259a2 commit 9514618
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-gorillas-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/types": patch
---

Drop `password` property from `UserJSON` since it's not being returned by the Frontend API
4 changes: 0 additions & 4 deletions packages/types/src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ export interface UserJSON extends ClerkResourceJSON {

organization_memberships: OrganizationMembershipJSON[];
password_enabled: boolean;
/**
* @deprecated This will be removed in the next major version
*/
password: string;
profile_image_id: string;
first_name: string;
last_name: string;
Expand Down
1 change: 0 additions & 1 deletion packages/types/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export type VerifyTOTPParams = { code: string };
type UpdateUserJSON = Pick<
UserJSON,
| 'username'
| 'password'
| 'first_name'
| 'last_name'
| 'primary_email_address_id'
Expand Down

0 comments on commit 9514618

Please sign in to comment.