Skip to content

feat(types): update idp types for optional password and clearPassword support#130

Merged
k1LoW merged 1 commit intomainfrom
update-idp-types
Feb 9, 2026
Merged

feat(types): update idp types for optional password and clearPassword support#130
k1LoW merged 1 commit intomainfrom
update-idp-types

Conversation

@k1LoW
Copy link
Contributor

@k1LoW k1LoW commented Feb 9, 2026

Summary

Update tailor.idp namespace types to support creating users without a password and clearing user passwords.

Changed types

  • CreateUserInput.password: stringstring? (optional)
    • If omitted, the user is created without a password (cannot log in with any password)
  • UpdateUserInput: add clearPassword?: boolean
    • If true, remove the user's password via ProvidersToDelete
    • Cannot be used together with password

Usage

const client = new tailor.idp.Client({ namespace: 'my-namespace' });

// Create a user without password
const user = await client.createUser({ name: 'user@example.com' });

// Create a user with password
const userWithPassword = await client.createUser({ name: 'user@example.com', password: 'password' });

// Clear a user's password
await client.updateUser({ id: 'user-id', clearPassword: true });

@k1LoW k1LoW self-assigned this Feb 9, 2026
@k1LoW k1LoW marked this pull request as ready for review February 9, 2026 05:45
@k1LoW k1LoW requested a review from a team as a code owner February 9, 2026 05:45
@k1LoW k1LoW added the enhancement New feature or request label Feb 9, 2026
Copy link
Contributor

@remiposo remiposo left a comment

Choose a reason for hiding this comment

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

LGTM

@k1LoW k1LoW merged commit ebdf66d into main Feb 9, 2026
6 checks passed
@k1LoW k1LoW deleted the update-idp-types branch February 9, 2026 09:42
k1LoW added a commit that referenced this pull request Feb 9, 2026
k1LoW added a commit that referenced this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants