Repository navigation
Framework adapters for theAuth: Hono, Express, Next.js, Fastify, Nuxt, SvelteKit, Astro and more #5
thegdsks
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
theAuth ships one adapter package per framework. Each adapter takes a theAuth instance and returns something your framework can mount. The reference for all of them is docs.theauth.dev/adapters.
(This thread was first posted when the project was called kavachOS. It is rewritten for the current names, see the rename map.)
Create the instance once
Next.js (App Router)
Hono
Express
The full list
@glinr/theauth-hono@glinr/theauth-express@glinr/theauth-nextjs@glinr/theauth-fastify@glinr/theauth-nuxt@glinr/theauth-sveltekit@glinr/theauth-astro@glinr/theauth-nestjs@glinr/theauth-solidstart@glinr/theauth-tanstackEach page under docs.theauth.dev/adapters has the exact mount code for that framework, and how to pass an
mcpmodule if you want the MCP OAuth 2.1 endpoints.The core package uses the Web
RequestandResponsetypes, so it does not depend on Node-specific APIs. The docs list Cloudflare Workers, Deno and Bun among the runtimes it targets. Supported databases are SQLite, Postgres, MySQL and Cloudflare D1.If your framework is not listed, the core works with any handler-shaped framework. A thin adapter is a welcome pull request. Tell us what you are building below.
All reactions