Adapters
An adapter is a set of helper functions. Each adapter connects @jmondi/oauth2-server to one framework. The library supplies four adapters:
| Adapter | Import from | Use it with |
|---|---|---|
| Express | @jmondi/oauth2-server/express | Express |
| Fastify | @jmondi/oauth2-server/fastify | Fastify |
| Vanilla | @jmondi/oauth2-server/vanilla | Hono, SvelteKit, Next.js, and other tools that use the native Request and Response objects |
| h3 | @jmondi/oauth2-server/h3 | h3, Nuxt, and Nitro |