Skip to content

Commit 4a8cb10

Browse files
authored
fix(shared): Make phoneCode.sendCode arg optional (#7918)
1 parent 04273d0 commit 4a8cb10

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/pink-states-lead.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/shared': patch
3+
---
4+
5+
Fix TypeScript issue where `signIn.phoneCode.sendCode` expected an argument.

packages/shared/src/types/signInFuture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export interface SignInFutureResource {
443443
/**
444444
* Used to send a phone code to sign-in
445445
*/
446-
sendCode: (params: SignInFuturePhoneCodeSendParams) => Promise<{ error: ClerkError | null }>;
446+
sendCode: (params?: SignInFuturePhoneCodeSendParams) => Promise<{ error: ClerkError | null }>;
447447

448448
/**
449449
* Used to verify a code sent via phone to sign-in

0 commit comments

Comments
 (0)