Releases: clerk-community/elysia-clerk
Release list
v1.0.2
v1.0.1
Patch Changes
- 6fda7c0: Update @clerk/backend to ^3.2.4 and @clerk/shared to ^4.4.0
v1.0.0
Major Changes
-
39ae0f4: Bump Clerk dependencies
@clerk/backendand@clerk/sharedto Clerk Core 3 versions.This release also raises the minimum supported
elysiaversion to1.4.0.
Minor Changes
-
9684bc8: Introduces machine authentication, supporting four token types:
api_key,oauth_token,machine_token, andsession_token. For backwards compatibility,session_tokenremains 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
acceptsTokenoption in theauth()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
Patch Changes
- a84328a: Fixed issue with Request cloning
v0.13.1
Patch Changes
- d07b60a: Fix auth() return type
v0.13.0
v0.12.2
Patch Changes
- 72f0d71: Bump
@clerk/backendto 2.14.0 and@clerk/sharedto 3.25.0
v0.12.1
Patch Changes
- 7dccdee: - Bump
@clerk/backendto 2.6.2- Bump
@clerk/sharedto 3.17.0
- Bump
v0.12.0
Minor Changes
-
3da6f14: Re-export webhook verification helper
Usage:
Required: Set your
CLERK_WEBHOOK_SIGNING_SECRETenvironment variable to protect webhooks. It is automatically read byverifyWebhook().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/backendto 2.4.1 and@clerk/sharedto 3.11.0
v0.11.0
Minor Changes
- 10f4cc5: Bump
@clerk/backendto 2.0.0 and prepare for machine auth changes.