Preliminary Checks
Reproduction / Replay Link
https://github.com/clerk/javascript/blob/main/packages/backend/src/api/endpoints/UserApi.ts#L59
Publishable key
not needed
Description
Steps to reproduce:
- Install
@clerk/clerk-node-sdk@4.12.23
- Try to use
createUser function to create a user with a createdAt date
- Typescript error happens. Try same object with
updateUser function, createdAt date works.
Expected behavior:
The API allows for a created_at option to be specified for new users, but the backend SDK does not allow this property on the createUser function because of the lack of this property signature. It's not a problem with the updateUser function however.
Actual behavior:
Typescript failure on adding createdAt property to createUser function.
Environment
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction / Replay Link
https://github.com/clerk/javascript/blob/main/packages/backend/src/api/endpoints/UserApi.ts#L59
Publishable key
not needed
Description
Steps to reproduce:
@clerk/clerk-node-sdk@4.12.23createUserfunction to create a user with acreatedAtdateupdateUserfunction,createdAtdate works.Expected behavior:
The API allows for a
created_atoption to be specified for new users, but the backend SDK does not allow this property on thecreateUserfunction because of the lack of this property signature. It's not a problem with theupdateUserfunction however.Actual behavior:
Typescript failure on adding
createdAtproperty tocreateUserfunction.Environment