Skip to content

Releases: clerk/javascript

@clerk/[email protected]

13 Jun 22:12
6e9bde8
Compare
Choose a tag to compare

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Patch Changes

  • Add payment history tab to UserProfile and OrgProfile (#6075) by @aeliox

  • Add TypeScript types and en-US localization for upcoming <APIKeys /> component. This component will initially be in early access. (#5858) by @wobsoriano

  • Add missing semibold FontWeightScale type (#6114) by @jacekradko

  • Parse partial plan in ClerkAPIError.meta (#6102) by @panteliselef

  • Add localizations for some commerce strings, general cleanups (#6101) by @aeliox

  • Introduce commerce.checkout.pastDueNotice localization key. (#6097) by @panteliselef

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Minor Changes

  • Introduces machine authentication, supporting four token types: api_key, oauth_token, machine_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. (#6067) by @wobsoriano

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

    Example usage:

    import { createServerFn } from '@tanstack/react-start';
    import { getAuth } from '@clerk/tanstack-react-start/server';
    import { getWebRequest } from '@tanstack/react-start/server';
    
    const authStateFn = createServerFn({ method: 'GET' }).handler(async () => {
      const request = getWebRequest();
      const auth = await getAuth(request, { 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');
        console.log('more specifically, a ' + authObject.tokenType);
      }
    
      return {};
    });

Patch Changes

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

13 Jun 22:12
6e9bde8
Compare
Choose a tag to compare

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

Minor Changes

  • Introduces machine authentication, supporting four token types: api_key, oauth_token, machine_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. (#6067) by @wobsoriano

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

    Example usage:

    import { getAuth } from '@clerk/react-router/ssr.server';
    import type { Route } from './+types/profile';
    
    export async function loader(args: Route.LoaderArgs) {
      const authObject = await getAuth(args, { 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');
        console.log('more specifically, a ' + authObject.tokenType);
      }
    
      return {};
    }

Patch Changes

@clerk/[email protected]

13 Jun 22:11
6e9bde8
Compare
Choose a tag to compare

@clerk/[email protected]

13 Jun 22:12
6e9bde8
Compare
Choose a tag to compare

Minor Changes

  • Add <APIKeys /> component. This component will initially be in early access and not recommended for production usage just yet. (#5858) by @wobsoriano

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

Patch Changes