-
Notifications
You must be signed in to change notification settings - Fork 403
fix(nuxt): Add TypeScript support for auth object in event handlers #5300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 4a664e9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
!snapshot |
|
Hey @wobsoriano - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/agent-toolkit@0.0.7-snapshot.v20250307163221 --save-exact
npm i @clerk/astro@2.3.3-snapshot.v20250307163221 --save-exact
npm i @clerk/backend@1.25.2-snapshot.v20250307163221 --save-exact
npm i @clerk/chrome-extension@2.2.16-snapshot.v20250307163221 --save-exact
npm i @clerk/clerk-js@5.55.2-snapshot.v20250307163221 --save-exact
npm i @clerk/elements@0.23.2-snapshot.v20250307163221 --save-exact
npm i @clerk/clerk-expo@2.8.5-snapshot.v20250307163221 --save-exact
npm i @clerk/expo-passkeys@0.1.23-snapshot.v20250307163221 --save-exact
npm i @clerk/express@1.3.53-snapshot.v20250307163221 --save-exact
npm i @clerk/fastify@2.1.26-snapshot.v20250307163221 --save-exact
npm i @clerk/localizations@3.11.2-snapshot.v20250307163221 --save-exact
npm i @clerk/nextjs@6.12.5-snapshot.v20250307163221 --save-exact
npm i @clerk/nuxt@1.4.0-snapshot.v20250307163221 --save-exact
npm i @clerk/clerk-react@5.24.2-snapshot.v20250307163221 --save-exact
npm i @clerk/react-router@1.1.5-snapshot.v20250307163221 --save-exact
npm i @clerk/remix@4.5.5-snapshot.v20250307163221 --save-exact
npm i @clerk/shared@3.0.1-snapshot.v20250307163221 --save-exact
npm i @clerk/tanstack-start@0.11.4-snapshot.v20250307163221 --save-exact
npm i @clerk/testing@1.4.27-snapshot.v20250307163221 --save-exact
npm i @clerk/themes@2.2.21-snapshot.v20250307163221 --save-exact
npm i @clerk/types@4.47.1-snapshot.v20250307163221 --save-exact
npm i @clerk/vue@1.3.1-snapshot.v20250307163221 --save-exact |
| "@nuxt/kit": "^3.16.0", | ||
| "@nuxt/schema": "^3.16.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to update @nuxt/kit to 3.16.0 to support proper type augmentation for event.context.auth in Nitro.
This is a non-breaking change as it only requires the updated @nuxt/kit package and works with any Nuxt version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🌔
Description
Previously
event.context.authinside eventHandlers was typed as 'any'. This is now fixed withNuxt 3.16's improved addTypeTemplate support for Nitro types.
Before:
After:
Resolves ECO-437
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change