Skip to content

fix(user): accept password/hashed password fields in create user - #738

Merged
asafshen merged 2 commits into
mainfrom
shuni/task-20260611184619
Oct 21, 2026
Merged

asafshen merged 2 commits into
mainfrom
shuni/task-20260611184619

Conversation

@dorsha

@dorsha dorsha commented Jun 11, 2026

Copy link
Copy Markdown
Member

Fixes descope/etc#16186

View workflow run

Done. Here's what I changed:

lib/management/types.ts — Added password, hashedPassword, and seed fields to the UserOptions interface. Since create, createTestUser, update, and invite all spread UserOptions into the request body, these fields now flow through to the API automatically.

lib/management/user.test.ts — Added a test verifying that create correctly passes password, hashedPassword, and seed in the request body when using the options-style API.

The fix is minimal because the infrastructure already existed — UserPasswordHashed types were defined, batch operations already used them, and all single-user functions used the spread operator on UserOptions. The only gap was the interface definition.


Created by Shuni 🐕

…tions

The API supports passing password/hashedPassword/seed when creating a user,
but the SDK's UserOptions interface was missing these fields. This adds them
so create, createTestUser, update, and invite all support password fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nick-rodriguez-descope

Copy link
Copy Markdown

@asafshen Can you review this when you have a chance, please?

asafshen
asafshen previously approved these changes Jul 13, 2026
@avigloz

avigloz commented Sep 1, 2026

Copy link
Copy Markdown

@dorsha @asafshen merge conflict is blocking

@dorsha

dorsha commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

@asafshen can you handle that one?

…4619

# Conflicts:
#	lib/management/types.ts
#	lib/management/user.test.ts
@shuni-bot

shuni-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🐕 Shuni Review

No new issues found.

🤖 Model: claude-opus-5.5 · Effort: high


Review scope: Full review

Reviewed files (2)
  • lib/management/types.ts
  • lib/management/user.test.ts

🐕 Review complete — View session on Shuni Portal 🐾

🤖 Model: claude-opus-5.5 · Effort: high

@shuni-bot shuni-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐕 Shuni review: no new findings. Every changed file in this pull request was reviewed.

The full review summary is in Shuni's sticky review comment on this pull request.

@asafshen
asafshen enabled auto-merge (squash) October 21, 2026 08:02
@asafshen
asafshen merged commit 8737faf into main Oct 21, 2026
29 checks passed
@asafshen
asafshen deleted the shuni/task-20260611184619 branch October 21, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants