Skip to content

chore(nextjs): Add machine secret key environment variable to BAPI client init #6478

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

Merged

Conversation

wobsoriano
Copy link
Member

@wobsoriano wobsoriano commented Aug 5, 2025

Description

Please review #6479 first before this one.

This PR updates all JS SDKs to have an option to declare a machine secret key to authorize machine-to-machine requests

Resolves USER-2584

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:

Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: e32bc3b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch

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

Copy link

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 3:32pm

@wobsoriano wobsoriano changed the title chore: Add CLERK_MACHINE_SECRET_KEY to clerk client init chore(nextjs): Add machine secret key environment variable to BAPI client init Aug 5, 2025
@wobsoriano wobsoriano marked this pull request as ready for review August 5, 2025 22:42
@wobsoriano wobsoriano changed the base branch from rob/user-2264-m2m to rob/user-2264-m2m-auth August 6, 2025 15:11
Copy link
Member

@jacekradko jacekradko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, my only question is about the wording. Is MACHINE_ the agreed upon nomenclature for referring to the M2M feature?

@wobsoriano
Copy link
Member Author

The changes look good, my only question is about the wording. Is MACHINE_ the agreed upon nomenclature for referring to the M2M feature?

fwiw the MACHINE_ here is for the machines endpoint, separate from the M2M endpoints

@wobsoriano wobsoriano merged commit dc2dc84 into rob/user-2264-m2m-auth Aug 7, 2025
7 checks passed
@wobsoriano wobsoriano deleted the rob/user-2584-machine-secret-key-env branch August 7, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants