Skip to content

Releases: clerk/javascript

@clerk/[email protected]

29 Jul 16:18
a34bad4
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@clerk/[email protected]

29 Jul 16:18
a34bad4
Compare
Choose a tag to compare

Minor Changes

  • [Billing Beta]: Replace org for organization as payer type for billing APIs. (#6423) by @panteliselef

    This applies for all billing APIs, except the resources classes that represent data from Frontend API.

  • Refactor base theme approach to enable opting into simple theme. (#6371) by @alexcarpenter

    appearance={{
      theme: 'simple' // removes Clerk base theme
    }}

Patch Changes

@clerk/[email protected]

29 Jul 16:18
a34bad4
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

29 Jul 16:18
a34bad4
Compare
Choose a tag to compare

@clerk/[email protected]

29 Jul 16:19
a34bad4
Compare
Choose a tag to compare

@clerk/[email protected]

29 Jul 16:18
a34bad4
Compare
Choose a tag to compare

Minor Changes

  • [Billing Beta]: Replace org for organization as payer type for billing APIs. (#6423) by @panteliselef

    This applies for all billing APIs, except the resources classes that represent data from Frontend API.

Patch Changes

@clerk/[email protected]

29 Jul 16:19
a34bad4
Compare
Choose a tag to compare

@clerk/[email protected]

29 Jul 16:19
a34bad4
Compare
Choose a tag to compare

@clerk/[email protected]

29 Jul 16:18
a34bad4
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. (#6391) by @wobsoriano

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

    Example usage:

    export default eventHandler(event => {
      const auth = event.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');
        console.log('more specifically, a ' + authObject.tokenType);
      }
    
      return {};
    });

Patch Changes

@clerk/[email protected]

29 Jul 16:19
a34bad4
Compare
Choose a tag to compare

Minor Changes

Patch Changes