elysia-clerk

Unofficial Clerk plugin for Elysia.js.

MIT License

Downloads
10K
Stars
66
Committers
3

Bot releases are visible (Hide)

elysia-clerk - v0.8.0

Published by github-actions[bot] 19 days ago

Minor Changes

  • eaa13f8: Make enableHandshake value default to true as header based authorization does not support handshake by default anyway.
elysia-clerk - v0.7.0

Published by github-actions[bot] 29 days ago

Minor Changes

  • a33d88d: Disable Clerk handshake by default

Patch Changes

  • af95933: Bump @clerk/backend to 1.13.2
  • dccd3be: Add @clerk/shared to dependencies
elysia-clerk - v0.6.1 Latest Release

Published by github-actions[bot] about 1 month ago

Patch Changes

  • 098c11a: Bump @clerk/backend to 1.11.1
elysia-clerk - v0.6.0

Published by github-actions[bot] about 2 months ago

Minor Changes

  • 9c3b71c: Remove deprecated auth store

Patch Changes

  • 53e7571: Bump @clerk/backend to 1.9.0"
elysia-clerk - v0.5.5

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 4c4b12a: Move auth object to resolved properties

    Usage:

    import { Elysia } from "elysia";
    import { clerkPlugin } from "elysia-clerk";
    
    new Elysia()
      .use(clerkPlugin())
      .get("/api/me", async ({ clerk, auth, set }) => {
        if (!auth?.userId) {
          set.status = 403;
          return "Unauthorized";
        }
    
        const user = await clerk.users.getUser(auth.userId);
    
        return { user };
      })
      .listen(3000);
    
elysia-clerk - v0.5.4

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 3f43064: Update usage docs
  • 8f72ecc: Bump @clerk/backend to 1.7.0
  • e69451a: Fix AuthObject import
elysia-clerk - v0.5.3

Published by github-actions[bot] 3 months ago

Patch Changes

  • 82e14da: Remove unused dependency
elysia-clerk - v0.5.2

Published by github-actions[bot] 3 months ago

Patch Changes

  • 9856093: Option to opt-out of telemetry
  • 7f4fdc3: Bump @clerk/backend to 1.4.3