Skip to content

Releases: clerk-community/elysia-clerk

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 21 Jul 17:09
392e268

Patch Changes

  • f43d41e: Bump @clerk/backend to 3.12.0 and @clerk/shared to 4.25.6

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Apr 16:03
67b3bbe

Patch Changes

  • 6fda7c0: Update @clerk/backend to ^3.2.4 and @clerk/shared to ^4.4.0

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Mar 03:48

Major Changes

  • 39ae0f4: Bump Clerk dependencies @clerk/backend and @clerk/shared to Clerk Core 3 versions.

    This release also raises the minimum supported elysia version to 1.4.0.

Minor Changes

  • 9684bc8: 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.

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

    Example usage:

    import { clerkPlugin } from "elysia-clerk";
    
    export const app = new Elysia()
      .onError(({ code, error }) => {
        console.error(code, error);
      })
      .use(clerkPlugin())
      .get("/api/protected", ({ auth }) => {
        const authObject = auth({ acceptsToken: "any" });
    
        if (!authObject.isAuthenticated) {
          // do something for unauthenticated requests
        }
    
        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);
        }
      })
      .listen(8080);

v0.13.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 08:01
a534e15

Patch Changes

  • a84328a: Fixed issue with Request cloning

v0.13.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 19:20
0c50000

Patch Changes

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 17:27
687e888

Minor Changes

Patch Changes

  • 3995c20: Migrate @clerk/types import to @clerk/shared/types

v0.12.2

Choose a tag to compare

@github-actions github-actions released this 12 Sep 19:15
8f091e8

Patch Changes

  • 72f0d71: Bump @clerk/backend to 2.14.0 and @clerk/shared to 3.25.0

v0.12.1

Choose a tag to compare

@github-actions github-actions released this 06 Aug 16:43
46a71a9

Patch Changes

  • 7dccdee: - Bump @clerk/backend to 2.6.2
    • Bump @clerk/shared to 3.17.0

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 09 Jul 15:58
2554461

Minor Changes

  • 3da6f14: Re-export webhook verification helper

    Usage:

    Required: Set your CLERK_WEBHOOK_SIGNING_SECRET environment variable to protect webhooks. It is automatically read by verifyWebhook().

    import { clerkPlugin } from "elysia-clerk";
    import { verifyWebhook } from "elysia-clerk/webhooks";
    
    new Elysia()
      .use(clerkPlugin())
      .get("/webhook", ({ request }) => {
        const result = await verifyWebhook(request);
        // do something with the result
      })
      .listen(3000);

Patch Changes

  • be91dec: Bump @clerk/backend to 2.4.1 and @clerk/shared to 3.11.0

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 06 Jun 15:41
b13817b

Minor Changes

  • 10f4cc5: Bump @clerk/backend to 2.0.0 and prepare for machine auth changes.