diff --git a/.changeset/friendly-gorillas-smash.md b/.changeset/friendly-gorillas-smash.md new file mode 100644 index 0000000000..fb884c1c8e --- /dev/null +++ b/.changeset/friendly-gorillas-smash.md @@ -0,0 +1,5 @@ +--- +"@clerk/types": patch +--- + +Drop `password` property from `UserJSON` since it's not being returned by the Frontend API diff --git a/packages/types/src/json.ts b/packages/types/src/json.ts index f24384dd7f..aca6f80b7e 100644 --- a/packages/types/src/json.ts +++ b/packages/types/src/json.ts @@ -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; diff --git a/packages/types/src/user.ts b/packages/types/src/user.ts index bea8d4aa09..e2b6a92200 100644 --- a/packages/types/src/user.ts +++ b/packages/types/src/user.ts @@ -140,7 +140,6 @@ export type VerifyTOTPParams = { code: string }; type UpdateUserJSON = Pick< UserJSON, | 'username' - | 'password' | 'first_name' | 'last_name' | 'primary_email_address_id'