Skip to content

Node SDK: createUser function missing createdAt property #2281

Description

@mboudreau

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:

  1. Install @clerk/clerk-node-sdk@4.12.23
  2. Try to use createUser function to create a user with a createdAt date
  3. 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

no need

Metadata

Metadata

Assignees

Labels

prioritizedThis issue has been triaged and the team is working on it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions