Skip to content

feat(shared): polish missing/invalid key error copy - #9531

Draft
eatmorespinach wants to merge 1 commit into
mainfrom
drew/keyless-error-copy-tweaks
Draft

feat(shared): polish missing/invalid key error copy#9531
eatmorespinach wants to merge 1 commit into
mainfrom
drew/keyless-error-copy-tweaks

Conversation

@eatmorespinach

Copy link
Copy Markdown

Description

Copy-only follow-up to #9491. Three tweaks to the missing/invalid key error messages (all 4 variants: missing publishable key, missing secret key, invalid publishable key, and the fatal key-parse guidance):

  • Remove the two-space indent before the npx clerk@latest init command. The indent is a terminal code-block convention, but in the Next.js dev error overlay — where most new users hit this message — it renders as a stray leading space.
  • Start the follow-up sentence with the command name: "npx clerk@latest init creates a Clerk application..." instead of "It creates...", so the sentence stands on its own.
  • Reword "Requires no Clerk account or login..." to "No Clerk account or login required...".

No behavior changes. Test assertions in shared, backend, and nextjs updated to match.

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

🤖 Generated with Claude Code

- Remove the two-space indent before the `npx clerk@latest init` command;
  it read as a stray space in browser dev error overlays
- Start the follow-up sentence with the command name instead of "It" so
  it stands alone
- Reword "Requires no Clerk account or login" to "No Clerk account or
  login required"
@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08113e1

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

This PR includes changesets to release 23 packages
Name Type
@clerk/shared Patch
@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/headless Patch
@clerk/hono Patch
@clerk/localizations Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/ui Patch
@clerk/vue Patch
@clerk/swingset 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 Aug 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview Aug 23, 2026 10:04pm
swingset Ready Ready Preview Aug 23, 2026 10:04pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Aug 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

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

@clerk/electron-passkeys

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

@clerk/eslint-plugin

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

@clerk/expo

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

@clerk/expo-google-signin

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 08113e1

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.

1 participant