Skip to content

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Sep 4, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@clerk/[email protected]

Minor Changes

  • Introduces machine authentication, supporting four token types: api_key, oauth_token, m2m_token, and session_token. For backwards compatibility, session_token remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6671) by @wobsoriano

    You can specify which token types are allowed by using the acceptsToken option in the auth() local. This option can be set to a specific type, an array of types, or 'any' to accept all supported tokens.

    Example usage in endpoints:

    export const GET: APIRoute = ({ locals }) => {
      const authObject = locals.auth({ acceptsToken: 'any' });
    
      if (authObject.tokenType === 'session_token') {
        console.log('this is session token from a user');
      } else {
        console.log('this is some other type of machine token (api_key | oauth_token | m2m_token)');
        console.log('more specifically, a ' + authObject.tokenType);
      }
    
      return new Response(JSON.stringify({}));
    };

    In middleware:

    import { clerkMiddleware, createRouteMatcher } from '@clerk/astro/server';
    
    const isProtectedRoute = createRouteMatcher(['/api(.*)']);
    
    export const onRequest = clerkMiddleware((auth, context) => {
      const { userId } = auth({ acceptsToken: 'api_key' });
    
      if (!userId && isProtectedRoute(context.request)) {
        return new Response('Unauthorized', { status: 401 });
      }
    });

Patch Changes

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce "Last Used" functionality to Sign In and Up (#6722) by @tmilewski

Patch Changes

@clerk/[email protected]

Minor Changes

  • Change placement of the manage subscription button inside <UserProfile/> and <OrganizationProfile/> (#6428) by @panteliselef

Patch Changes

@clerk/[email protected]

Minor Changes

  • Change placement of the manage subscription button inside <UserProfile/> and <OrganizationProfile/> (#6428) by @panteliselef

Patch Changes

@clerk/[email protected]

Minor Changes

  • Replaced callback props with event emitters in billing buttons: (#6733) by @wobsoriano

    props onSubscriptionComplete → emit subscription-complete
    props onSubscriptionCancel → emit subscription-cancel

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

Copy link

vercel bot commented Sep 4, 2025

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

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Sep 8, 2025 7:47pm

Copy link
Contributor

coderabbitai bot commented Sep 4, 2025

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • ci(repo): Version packages

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch changeset-release/main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

pkg-pr-new bot commented Sep 4, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6712

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@6712

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@6712

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@6712

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@6712

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6712

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6712

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@6712

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@6712

@clerk/express

npm i https://pkg.pr.new/@clerk/express@6712

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@6712

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@6712

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@6712

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@6712

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@6712

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@6712

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6712

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@6712

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@6712

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@6712

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6712

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6712

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@6712

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@6712

commit: 96de7fd

@github-actions github-actions bot force-pushed the changeset-release/main branch from 5a8d3af to c1db02d Compare September 5, 2025 10:08
@github-actions github-actions bot force-pushed the changeset-release/main branch from c1db02d to 46d6eac Compare September 5, 2025 13:55
@github-actions github-actions bot force-pushed the changeset-release/main branch from 46d6eac to 0fa7b68 Compare September 5, 2025 15:51
@github-actions github-actions bot force-pushed the changeset-release/main branch from 0fa7b68 to bae992e Compare September 5, 2025 16:53
@github-actions github-actions bot force-pushed the changeset-release/main branch from bae992e to c438b72 Compare September 5, 2025 16:58
@github-actions github-actions bot force-pushed the changeset-release/main branch from c438b72 to cf3e37a Compare September 5, 2025 17:46
@github-actions github-actions bot force-pushed the changeset-release/main branch from cf3e37a to 738c024 Compare September 5, 2025 17:59
@github-actions github-actions bot force-pushed the changeset-release/main branch from 738c024 to 3483d85 Compare September 5, 2025 18:16
@github-actions github-actions bot force-pushed the changeset-release/main branch from 3483d85 to b5356e6 Compare September 7, 2025 18:56
@github-actions github-actions bot force-pushed the changeset-release/main branch from b5356e6 to 90d127d Compare September 8, 2025 11:45
@github-actions github-actions bot force-pushed the changeset-release/main branch from 90d127d to 4497fe8 Compare September 8, 2025 11:53
@github-actions github-actions bot force-pushed the changeset-release/main branch from 4497fe8 to 884b754 Compare September 8, 2025 12:12
@github-actions github-actions bot force-pushed the changeset-release/main branch from 884b754 to a2e0d0e Compare September 8, 2025 12: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.

2 participants