Skip to main content

Adapters

Adapters are a set of helper functions to provide framework specific integration into @jmondi/oauth2-server. We provide adapters for some common tools:

  • Express - If you're using Express, you can use the @jmondi/oauth2-server/express adapter.
  • Fastify - If you're using Fastify, you can use the @jmondi/oauth2-server/fastify adapter.
  • VanillaJS - Adapts the Fetch Request and Response so you can use Honojs, Sveltekit, Nextjs or whatever tool your using that uses the native Request and Response @jmondi/oauth2-server/vanilla adapter.
  • Nuxt - If you are using Nuxt, you can directly copy this code and use it as is.