Skip to content

Node SDK: createUser function missing createdAt property #2281

Closed

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

Activity

  1. added
    needs-triageA ticket that needs to be triaged by a team member
    on Dec 7, 2023
  2. self-assigned this
    on Dec 7, 2023
  3. added
    prioritizedThis issue has been triaged and the team is working on it
    and removed
    needs-triageA ticket that needs to be triaged by a team member
    on Dec 7, 2023
  4. dimkl commented on Dec 7, 2023

    @dimkl
    Contributor

    Hello @mboudreau
    thank you for reporting this. A fix has been released as part of @clerk/clerk-sdk-node@4.13.0

  5. clerk-cookie commented on Dec 7, 2024

    @clerk-cookie
    Collaborator

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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