Skip to content

Commit

Permalink
fix(backend): Add UserPasswordHashingParams to updateUser (#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros authored Jan 17, 2024
1 parent 3e9ea1f commit a6308c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-ladybugs-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': patch
---

Add `password_hasher` and `password_digest` to `users.updateUser(userId, params)`
5 changes: 3 additions & 2 deletions packages/backend/src/api/endpoints/UserApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type CreateUserParams = {
} & UserMetadataParams &
(UserPasswordHashingParams | object);

interface UpdateUserParams extends UserMetadataParams {
type UpdateUserParams = {
firstName?: string;
lastName?: string;
username?: string;
Expand All @@ -88,7 +88,8 @@ interface UpdateUserParams extends UserMetadataParams {
externalId?: string;
createdAt?: Date;
createOrganizationEnabled?: boolean;
}
} & UserMetadataParams &
(UserPasswordHashingParams | object);

type GetOrganizationMembershipListParams = ClerkPaginationRequest<{
userId: string;
Expand Down

0 comments on commit a6308c6

Please sign in to comment.