Skip to content

ClerkExpressRequireAuth doesn't have any argument types #1938

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.

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