Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/sign-up-future-create-channel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/shared': minor
---

Add a `channel` option to `signUp.create()`. Pass it with `strategy: 'phone_code'` and a `phoneNumber` to create the sign-up and send the verification code over that channel, such as `'whatsapp'`, in a single request instead of calling `signUp.verifications.sendPhoneCode()` afterwards.
5 changes: 5 additions & 0 deletions .changeset/sign-up-future-update-password.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/shared': minor
---

`SignUpFuture.update()` accepts a `password`, so a custom flow can set the password on a sign-up that was created without one, such as one started from an invitation.
8 changes: 8 additions & 0 deletions packages/shared/src/types/signUpFuture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export interface SignUpFutureCreateParams extends SignUpFutureAdditionalParams {
| GoogleOneTapStrategy
| AppleIdTokenStrategy
| PhoneCodeStrategy;
/**
* The mechanism to use to send the code to `phoneNumber` when `strategy` is `'phone_code'`. The sign-up is created and the code is sent in the same request. Defaults to `'sms'`.
*/
channel?: PhoneCodeChannel;
/**
* Optional per-attempt Slack workspace hint. Only supported with the `oauth_slack` strategy.
*/
Expand Down Expand Up @@ -121,6 +125,10 @@ export interface SignUpFutureUpdateParams extends SignUpFutureAdditionalParams {
* The user's username. Only supported if [username](https://clerk.com/docs/guides/configure/auth-strategies/sign-up-sign-in-options#username) is enabled in the instance settings.
*/
username?: string;
/**
* The user's password. [Password](https://clerk.com/docs/guides/configure/auth-strategies/sign-up-sign-in-options#password) must be enabled in the instance settings.
*/
password?: string;
}

/** @generateWithEmptyComment */
Expand Down
Loading