Skip to content

docs(nuxt): Use isAuthenticated in createRouteMatcher migration examples - #9269

Merged
wobsoriano merged 2 commits into
mainfrom
rob/nuxt-changeset-isauthenticated
Jul 29, 2026
Merged

docs(nuxt): Use isAuthenticated in createRouteMatcher migration examples#9269
wobsoriano merged 2 commits into
mainfrom
rob/nuxt-changeset-isauthenticated

Conversation

@wobsoriano

Copy link
Copy Markdown
Member

Description

Follow-up to #9258. The migration examples in the pending @clerk/nuxt major changeset checked userId truthiness, while the docs (clerk/clerk#3043) standardize on the isAuthenticated property for authentication checks. This updates the changeset's event handler example and agent migration prompt to match, so the changelog and docs recommend the same check.

No code changes, changeset content only.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.

Type of change

  • 📖 Refactoring / dependency upgrade / documentation

@changeset-bot

changeset-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7760b95

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 1 package
Name Type
@clerk/nuxt Major

Click here to learn what changesets are, and how to add one.

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

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
swingset Ready Ready Preview, Comment Jul 29, 2026 1:54pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
clerk-js-sandbox Skipped Skipped Jul 29, 2026 1:54pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

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

@clerk/electron-passkeys

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

@clerk/eslint-plugin

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

@clerk/expo

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

@clerk/expo-google-signin

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 7760b95

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 453916b3-0534-4f35-8d25-9108dec494fa

📥 Commits

Reviewing files that changed from the base of the PR and between 8656308 and 7760b95.

📒 Files selected for processing (1)
  • packages/astro/CHANGELOG.md
🔗 Linked repositories identified

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

  • clerk/clerk_go (manual)
  • clerk/dashboard (manual)
  • clerk/accounts (manual)
  • clerk/backoffice (manual)
  • clerk/clerk (manual) → reviewed against open PR #3043 rob/nuxt-crm-removal instead of the default branch
  • clerk/clerk-docs (manual)
  • clerk/cloudflare-workers (manual)
  • clerk/cli (auto-detected)
  • clerk/clerk-ios (auto-detected)
  • clerk/clerk-android (auto-detected)

📝 Walkthrough

Walkthrough

Updates Nuxt and Astro authentication guidance to use isAuthenticated for protected resources instead of checking userId. Nitro and Astro API examples return 401 responses for unauthenticated requests, while Astro page examples redirect. Nuxt migration guidance documents resource-level checks after matcher-based protection is removed.

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

Possibly related PRs

  • clerk/javascript#9258: Removes matcher-based Nuxt authentication guidance and aligns protection with resource-level isAuthenticated checks.

Suggested reviewers: clerk-cookie

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main docs change: switching migration examples to use isAuthenticated.
Description check ✅ Passed The description is directly related to the changeset and accurately summarizes the documentation-only update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

Comment @coderabbitai help to get the list of available commands.

@wobsoriano wobsoriano closed this Jul 29, 2026
@wobsoriano wobsoriano reopened this Jul 29, 2026
@wobsoriano

Copy link
Copy Markdown
Member Author

!allow-major

@github-actions

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-07-29T13:54:52.385Z

Summary

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

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

Last ran on 7760b95.

@wobsoriano
wobsoriano merged commit a8f6e89 into main Jul 29, 2026
52 checks passed
@wobsoriano
wobsoriano deleted the rob/nuxt-changeset-isauthenticated branch July 29, 2026 13:56
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