Skip to content

Commit 460b47a

Browse files
authored
chore(tanstack-react-start): Make clerkClient() options parameter optional (#5910)
1 parent db162dc commit 460b47a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/breezy-pillows-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/tanstack-react-start": patch
3+
---
4+
5+
Make `clerkClient()` options parameter optional

packages/tanstack-react-start/src/server/clerkClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import type { ClerkClient, ClerkOptions } from '@clerk/backend';
12
import { createClerkClient } from '@clerk/backend';
23

34
import { commonEnvs } from './constants';
45

5-
const clerkClient: typeof createClerkClient = options => {
6+
const clerkClient = (options?: ClerkOptions): ClerkClient => {
67
const commonEnv = commonEnvs();
78
return createClerkClient({
89
secretKey: commonEnv.SECRET_KEY,

0 commit comments

Comments
 (0)