Skip to content

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

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

austincalvelage wants to merge 2 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().

/**
 * 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: c62e133

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 1:23am UTC
swingset Ready Ready Preview Nov 24, 2026 1:23am UTC
1 Skipped Deployment
Project Deployment Actions Updated
mosaic-docs Ignored Ignored Preview Nov 24, 2026 1:23am 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'. A changeset marks @clerk/shared for a minor release and includes an example that passes 'whatsapp' to signUp.create().

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: Minimal · up to c62e1

This adds an optional channel type to sign-up creation so phone codes can be sent over WhatsApp in one request. It is a type-only change with no runtime behavior change, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: adding an accepted channel parameter to the SignUpFuture create params in the shared package. It matches the single type change in packages/shared/src/types/signUpFuture.ts…
Description check Passed The description states that the PR adds channel to SignUpFutureCreateParams so signUp.create() can send a phone code over WhatsApp in one request. It also explains that this is a type-only change, and…
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.
Full details: Title check

Explanation

The title names the change: adding an accepted channel parameter to the SignUpFuture create params in the shared package. It matches the single type change in packages/shared/src/types/signUpFuture.ts and the changeset. The 'fix' prefix is a minor mismatch because the change adds an optional field, but the title still describes the main change.

Full details: Description check

Explanation

The description states that the PR adds channel to SignUpFutureCreateParams so signUp.create() can send a phone code over WhatsApp in one request. It also explains that this is a type-only change, and it includes the JSDoc snippet that matches the raw summary. The description is directly related 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 97c553d and c62e133.

Files selected for processing: 1

  • .changeset/sign-up-future-create-channel.md
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: c62e133

@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-24T01:26:47.655Z

Summary

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

@clerk/shared

Current version: 4.48.3
Recommended bump: MINOR → 4.49.0

Subpath ./types

🟢 Additions (1)

Added: SignUpFutureCreateParams.channel
+ channel?: PhoneCodeChannel;

Added property SignUpFutureCreateParams.channel


Report generated by Break Check

Last ran on c62e133.

@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.

This branch was successfully deployed

2 active deployments
Preview – swingset — c62e1330 Deployed Nov 24, 2026 by vercel[bot]
Preview – clerk-js-sandbox — c62e1330 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