Skip to content

ClerkExpressRequireAuth doesn't have any argument types #1938

Closed

Description

@tmcw

Preliminary Checks

Reproduction / Replay Link

.

Publishable key

.

Description

Steps to reproduce:

  1. Import and use ClerkExpressWithAuth

Expected behavior:

The method should require its arguments are ClerkMiddlewareOptions like here:

https://github.com/clerkinc/javascript/blob/main/packages/sdk-node/src/clerkExpressWithAuth.ts#L13C20-L13C42

Actual behavior:

It doesn't, the wrapper method has type ...args: any:

https://github.com/clerkinc/javascript/blob/main/packages/sdk-node/src/clerkClient.ts#L78

So, you don't get any type safety using this method.

Environment

This is in the main branch of this repo.

Activity

  1. added
    needs-triageA ticket that needs to be triaged by a team member
    on Oct 25, 2023
  2. self-assigned this
    on Oct 25, 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 Oct 30, 2023
  4. tmcw commented on Mar 5, 2024

    @tmcw
    Author

    Is this fixed? It seems fixed, but is not closed.

  5. LekoArts commented on Mar 6, 2024

    @LekoArts
    Contributor

    This was fixed by #1939, yes 👍

  6. clerk-cookie commented on Mar 7, 2025

    @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.

  7. locked as resolved and limited conversation to collaborators on Mar 7, 2025
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