Repository navigation
fix(nextjs): redact debug data for machine auth objects in route handlers - #10872
wobsoriano wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 43f80ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
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 |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
@clerk/backendCurrent version: 3.30.0 Subpath
|

Description
In route handlers,
auth().debug()returned unredacted data when the request was authenticated with an M2M token, OAuth token or API key. The machine auth object is rebuilt from the dataclerkMiddleware()forwards, and itsdebugreturned the auth options as-is instead of going through the redaction every other auth object uses.@clerk/backend/internalnow exports that redaction ascreateDebug, and the route handler path uses it, so debug data is redacted the same way as for session tokens.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude under Rob's supervision.