Skip to content

Conversation

@amadeo-workos
Copy link
Contributor

Description

This PR ensures that the User create process allows for the password_hash and password_hash_type fields, in addition to the existing password field, similar to the Update process.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

https://github.com/workos/workos/pull/26060

* @param string|null $lastName The last name of the user.
* @param boolean|null $emailVerified A boolean declaring if the user's email has been verified.
* @param string|null $passwordHash The hashed password to set for the user.
* @param string|null $passwordHashType The algorithm originally used to hash the password. Valid values are bcrypt.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param string|null $passwordHashType The algorithm originally used to hash the password. Valid values are bcrypt.
* @param string|null $passwordHashType The algorithm originally used to hash the password. Valid values are `bcrypt`, `ssha`, and `firebase-scrypt`.

The updateUser docs that this was copied from needs an update as well.

@amadeo-workos amadeo-workos merged commit a167e99 into main Apr 8, 2024
@amadeo-workos amadeo-workos deleted the amadeo-add-password_hash-password_hash_type-user-creation branch April 8, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants