Skip to content

feat(ui): Introduce ams claim handling in UserButton context and components#8380

Draft
thiskevinwang wants to merge 1 commit intomainfrom
kevin/aie-858-javascriptsdk-hidedisable-functionality-when-ams-claim-is
Draft

feat(ui): Introduce ams claim handling in UserButton context and components#8380
thiskevinwang wants to merge 1 commit intomainfrom
kevin/aie-858-javascriptsdk-hidedisable-functionality-when-ams-claim-is

Conversation

@thiskevinwang
Copy link
Copy Markdown
Member

  • Added ams claim type to JWT payload for session management.
  • Integrated useAms hook to conditionally render the "Manage account" action in the UserButton based on the active session's ams claim.
  • Updated UserButton context to filter out the "Manage account" menu item when the ams claim is active, preventing users from accessing unavailable actions.

Description

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
  • other:

…mponents

- Added `ams` claim type to JWT payload for session management.
- Integrated `useAms` hook to conditionally render the "Manage account" action in the UserButton based on the active session's `ams` claim.
- Updated UserButton context to filter out the "Manage account" menu item when the `ams` claim is active, preventing users from accessing unavailable actions.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

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

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Apr 22, 2026 5:34pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 22, 2026

⚠️ No Changeset found

Latest commit: d4417da

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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