Skip to content

Commit cbc5618

Browse files
authored
fix(shared): Make arguments for sendCode optional (#7953)
1 parent c694433 commit cbc5618

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/forty-lamps-yawn.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 issue where an argument to `signIn.emailCode.send()` was marked as required.

packages/shared/src/types/signInFuture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export interface SignInFutureResource {
398398
/**
399399
* Used to send an email code to sign-in
400400
*/
401-
sendCode: (params: SignInFutureEmailCodeSendParams) => Promise<{ error: ClerkError | null }>;
401+
sendCode: (params?: SignInFutureEmailCodeSendParams) => Promise<{ error: ClerkError | null }>;
402402

403403
/**
404404
* Used to verify a code sent via email to sign-in

0 commit comments

Comments
 (0)