You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(user): support userId in invite and inviteBatch (#696)
* feat(user): support userId in invite and inviteBatch
Rename loginId → loginIdOrUserId in invite/inviteBatch so callers can
pass either a loginId (creates user if not found) or a userId (resolves
to the existing user's loginId and resends the invite, useful for
re-inviting). The wire format is unchanged — loginId is still sent in
the JSON body.
Required For: descope/etc#14641
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(user): make User type backwards compatible by deprecating loginId
Keep loginId as a deprecated alias alongside the new loginIdOrUserId field
using a union type (same pattern as PatchUserOptionsUsingIdentifier), so
existing callers of createBatch/inviteBatch are not broken.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(user): add backwards compat regression tests for deprecated loginId
Verify that inviteBatch and createBatch still correctly map the old
loginId field to the wire payload, so JS consumers are not silently
broken.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments