Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/little-dolphins-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/clerk-sdk-node': minor
'@clerk/backend': minor
---

Add missing `createdAt` param in `User#createUser()` of `@clerk/backend`.
Fix `clerkClient.verifyToken()` signature to support a single `token: string` parameter.
1 change: 1 addition & 0 deletions packages/backend/src/api/endpoints/UserApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type CreateUserParams = {
skipPasswordRequirement?: boolean;
totpSecret?: string;
backupCodes?: string[];
createdAt?: Date;
} & UserMetadataParams &
(UserPasswordHashingParams | object);

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-node/src/clerkClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { loadApiEnv, loadClientEnv } from './utils';
type ExtendedClerk = ReturnType<typeof _Clerk> & {
expressWithAuth: ReturnType<typeof createClerkExpressWithAuth>;
expressRequireAuth: ReturnType<typeof createClerkExpressRequireAuth>;
verifyToken: typeof _verifyToken;
verifyToken: (token: string, verifyOpts?: Parameters<typeof _verifyToken>[1]) => ReturnType<typeof _verifyToken>;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will revisit this type as part of the changes in the v5 Project. This is a temporary fix to match the actual type.

};

/**
Expand Down