Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jun 16, 2025

Bumps @clerk/backend from 1.34.0 to 2.1.0.

Release notes

Sourced from @​clerk/backend's releases.

@​clerk/backend@​2.1.0

Minor Changes

  • Improve subject property handling for machine auth objects. (#6099) by @​wobsoriano

    Usage:

    import { createClerkClient } from '@clerk/backend';
    const clerkClient = createClerkClient({
    secretKey: process.env.CLERK_SECRET_KEY,
    publishableKey: process.env.CLERK_PUBLISHABLE_KEY,
    });
    const requestState = await clerkClient.authenticateRequest(request, {
    acceptsToken: 'any',
    });
    const authObject = requestState.toAuth();
    switch (authObject.tokenType) {
    case 'api_key':
    // authObject.userId
    // authObject.orgId
    break;
    case 'machine_token':
    // authObject.machineId
    break;
    case 'oauth_token':
    // authObject.userId
    // authObject.clientId
    break;
    }

  • Respect acceptsToken when returning unauthenticated session or machine object. (#6112) by @​wobsoriano

Patch Changes

... (truncated)

Changelog

Sourced from @​clerk/backend's changelog.

2.1.0

Minor Changes

  • Improve subject property handling for machine auth objects. (#6099) by @​wobsoriano

    Usage:

    import { createClerkClient } from '@clerk/backend';
    const clerkClient = createClerkClient({
    secretKey: process.env.CLERK_SECRET_KEY,
    publishableKey: process.env.CLERK_PUBLISHABLE_KEY,
    });
    const requestState = await clerkClient.authenticateRequest(request, {
    acceptsToken: 'any',
    });
    const authObject = requestState.toAuth();
    switch (authObject.tokenType) {
    case 'api_key':
    // authObject.userId
    // authObject.orgId
    break;
    case 'machine_token':
    // authObject.machineId
    break;
    case 'oauth_token':
    // authObject.userId
    // authObject.clientId
    break;
    }

  • Respect acceptsToken when returning unauthenticated session or machine object. (#6112) by @​wobsoriano

Patch Changes

... (truncated)

Commits
  • 6e9bde8 ci(repo): Version packages (#6077)
  • d832d91 chore(backend,nextjs): Refactor unauthenticated auth object fallback to respe...
  • 4319257 fix(backend): Use proxy url if available for handshake URL (#6119)
  • 6842ff1 fix(backend): Update Verification types (#6110)
  • 4118ed7 chore(backend): Improve subject handling for machine auth objects (#6099)
  • 607d333 chore(backend): Add jsdoc comments for user methods (#6091)
  • 2fe813f test(backend): Add authenticateRequest return type tests (#6096)
  • 183e382 chore(backend): Add getAuth() type helper tests (#6079)
  • 2148166 feat(express,fastify,tanstack-react-start,react-router): Support machine auth...
  • ba98163 chore(backend): Fix link in JSDoc comment (#6068)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@clerk/backend](https://github.com/clerk/javascript/tree/HEAD/packages/backend) from 1.34.0 to 2.1.0.
- [Release notes](https://github.com/clerk/javascript/releases)
- [Changelog](https://github.com/clerk/javascript/blob/main/packages/backend/CHANGELOG.md)
- [Commits](https://github.com/clerk/javascript/commits/@clerk/backend@2.1.0/packages/backend)

---
updated-dependencies:
- dependency-name: "@clerk/backend"
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 16, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jun 30, 2025

Superseded by #115.

@dependabot dependabot bot closed this Jun 30, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mabels/backend/clerk/backend-2.1.0 branch June 30, 2025 20:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant