Skip to content

fix(shared): accept channel in SignUpFuture create params - #10955

Open
austincalvelage wants to merge 3 commits into
mainfrom
austin/sign-up-future-create-channel
Open

austincalvelage wants to merge 3 commits into
mainfrom
austin/sign-up-future-create-channel

Conversation

@austincalvelage

@austincalvelage austincalvelage commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Description

Adds channel to SignUpFutureCreateParams, so signUp.create() can create the sign-up and send the phone code over WhatsApp in one request, like legacy sign-up does. Based on main.

clerk-js already sends every create param (_create spreads them into the request body), so this is a type change only, like #8320 was for signUp.update().

It also adds password to SignUpFutureUpdateParams, so Mosaic sign-up's continue screen can send a password typed there. Both are additive optional fields, released as minors.

/**
 * 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;

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a3058e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@clerk/shared Minor
@clerk/astro Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/electron Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/localizations Patch
@clerk/mosaic Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/swingset Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/ui Patch
@clerk/vue Patch
@clerk/mosaic-docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 24, 2026 5:50am UTC
mosaic-docs Ready Ready Preview Nov 24, 2026 5:50am UTC
swingset Ready Ready Preview Nov 24, 2026 5:50am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

SignUpFutureCreateParams gains an optional channel property of type PhoneCodeChannel. Its documentation describes its use for phone-code sign-ups and states that the default is 'sms'. SignUpFutureUpdateParams gains a password property. Two changesets mark @clerk/shared for minor releases and describe the corresponding API changes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: tmilewski

Merge Risk: Minimal · up to 1a305

This adds optional TypeScript properties for sign-up create and update calls, with changesets. Existing callers are unaffected, and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: it adds an optional channel parameter to the SignUpFuture create params in the shared package. The raw summary confirms that the signUpFuture.ts type change is the core of …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states the PR adds channel to SignUpFutureCreateParams so signUp.create() can send a phone code over WhatsApp in one request. It also states that password is added to `SignUpFu…
Full details: Title check

Explanation

The title names the change: it adds an optional channel parameter to the SignUpFuture create params in the shared package. The raw summary confirms that the signUpFuture.ts type change is the core of the changeset. The title is specific and accurate. It does not mention the separate update-password documentation change in the changeset, but that is a secondary item. The objectives note that the commit messages describe a password-on-update change, which is a mismatch with the title, but the title still matches the PR's stated and implemented change.

Full details: Description check

Explanation

The description states the PR adds channel to SignUpFutureCreateParams so signUp.create() can send a phone code over WhatsApp in one request. It also states that password is added to SignUpFutureUpdateParams. Both match the raw summary's changes to signUpFuture.ts and the changeset files. The description is specific and on-topic. The PR objectives note that the commit message describes a different password-related intent, but that does not affect whether the description relates to the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c62e133 and 1a3058e.

Files selected for processing: 2

  • .changeset/sign-up-future-update-password.md
  • packages/shared/src/types/signUpFuture.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10955

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10955

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10955

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10955

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10955

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10955

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10955

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10955

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10955

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10955

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10955

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10955

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10955

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10955

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10955

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10955

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10955

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10955

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10955

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10955

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10955

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10955

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10955

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10955

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10955

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10955

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10955

commit: 1a3058e

@austincalvelage
austincalvelage force-pushed the austin/sign-up-future-create-channel branch from 46de859 to 73f3527 Compare November 23, 2026 18:42
@austincalvelage
austincalvelage removed this pull request from stack #10958 November 23, 2026 18:43
@austincalvelage
austincalvelage changed the base branch from austin/sign-up-future-reload to main November 23, 2026 18:43
@austincalvelage
austincalvelage force-pushed the austin/sign-up-future-create-channel branch from 73f3527 to 47fe2fa Compare November 23, 2026 19:54
@austincalvelage austincalvelage changed the title feat(shared): accept channel in SignUpFuture create params fix(shared): accept channel in SignUpFuture create params Nov 23, 2026
@austincalvelage
austincalvelage force-pushed the austin/sign-up-future-create-channel branch from 47fe2fa to d237361 Compare November 23, 2026 20:12
@austincalvelage
austincalvelage marked this pull request as ready for review November 23, 2026 20:12
@blacksmith-sh

blacksmith-sh Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Matches signUp.create() accepts channel and sends it

signUp.create with channel: 'whatsapp' fails tsc on base (TS2353) and passes on head; clerk-js posts channel to /client/sign_ups.

Merge-base

channel rejected by tsc

This PR d2373610

channel accepted by tsc

POST body carries channel

Proof on d2373610 · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-11-24T05:52:09.101Z

Summary

Metric Count
Packages analyzed 20
Packages with changes 1
🔴 Breaking changes 0
🟡 Non-breaking changes 0
🟢 Additions 2

@clerk/shared

Current version: 4.48.3
Recommended bump: MINOR → 4.49.0

Subpath ./types

🟢 Additions (2)

Added: SignUpFutureCreateParams.channel
+ channel?: PhoneCodeChannel;

Added property SignUpFutureCreateParams.channel

Added: SignUpFutureUpdateParams.password
+ password?: string;

Added property SignUpFutureUpdateParams.password


Report generated by Break Check

Last ran on 1a3058e.

@alexcarpenter alexcarpenter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Likely deserves a minor since this is new option in shared.

It adds an option to a public @clerk/shared type.
A sign-up created without a password, such as one started from an invitation, can set it with update().

This branch was successfully deployed

2 active deployments
Preview – swingset — 1a3058e2 Deployed Nov 24, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 1a3058e2 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants