-
Notifications
You must be signed in to change notification settings - Fork 403
feat(vue): Introduce billing in useAuth() and <Protect>
#5890
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 02d0e42 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
| features: ((sessionClaims as JwtPayload | undefined)?.fea as string) || '', | ||
| plans: ((sessionClaims as JwtPayload | undefined)?.pla as string) || '', |
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.
Rob, can you verify that on the client we are grabbing features and plans from the session.lastActiveToken ? This is something that the we handle inside deriveState, I just don't recall if it a shared utility used by vue, or we need to explicitly handle it.
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.
I'll test, thanks! But yes we use a shared utility for createCheckAuthorization, resolveAuthState and deriveState:
import { deriveState } from '@clerk/shared/deriveState';
import { createCheckAuthorization, resolveAuthState } from '@clerk/shared/authorization';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.
|
!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.34-snapshot.v20250509140404 --save-exact
npm i @clerk/astro@2.7.2-snapshot.v20250509140404 --save-exact
npm i @clerk/backend@1.31.5-snapshot.v20250509140404 --save-exact
npm i @clerk/chrome-extension@2.4.3-snapshot.v20250509140404 --save-exact
npm i @clerk/clerk-js@5.65.0-snapshot.v20250509140404 --save-exact
npm i @clerk/elements@0.23.25-snapshot.v20250509140404 --save-exact
npm i @clerk/clerk-expo@2.11.3-snapshot.v20250509140404 --save-exact
npm i @clerk/expo-passkeys@0.3.2-snapshot.v20250509140404 --save-exact
npm i @clerk/express@1.4.17-snapshot.v20250509140404 --save-exact
npm i @clerk/fastify@2.2.17-snapshot.v20250509140404 --save-exact
npm i @clerk/localizations@3.15.2-snapshot.v20250509140404 --save-exact
npm i @clerk/nextjs@6.19.2-snapshot.v20250509140404 --save-exact
npm i @clerk/nuxt@1.6.3-snapshot.v20250509140404 --save-exact
npm i @clerk/clerk-react@5.31.2-snapshot.v20250509140404 --save-exact
npm i @clerk/react-router@1.4.2-snapshot.v20250509140404 --save-exact
npm i @clerk/remix@4.7.2-snapshot.v20250509140404 --save-exact
npm i @clerk/shared@3.8.2-snapshot.v20250509140404 --save-exact
npm i @clerk/tanstack-react-start@0.15.2-snapshot.v20250509140404 --save-exact
npm i @clerk/testing@1.6.7-snapshot.v20250509140404 --save-exact
npm i @clerk/themes@2.2.43-snapshot.v20250509140404 --save-exact
npm i @clerk/types@4.58.0-snapshot.v20250509140404 --save-exact
npm i @clerk/vue@1.8.0-snapshot.v20250509140404 --save-exact |

Description
This PR adds billing features to
useAuth()composable and<Protect>component in Vue. A port of #5582 into Vue.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change