UNPKG

@re-auth/http-adapters

Version:

HTTP protocol adapters for ReAuth - framework-agnostic integration with Express, Fastify, and Hono

13 lines (12 loc) 1.12 kB
export { ReAuthHttpAdapter } from './base-adapter.js'; export { ApiResponse, AuthStepRequest, AuthStepResponse, AuthenticatedUser, AuthenticationError, AuthorizationError, CorsConfig, FrameworkAdapter, HttpAdapterConfig, HttpAdapterError, HttpRequest, HttpResponse, MiddlewareFunction, NotFoundError, PluginEndpoint, PluginListResponse, RateLimitConfig, RateLimitError, RouteHandler, SecurityConfig, SecurityMiddleware, SessionRequest, SessionResponse, ValidationConfig, ValidationError } from './types.js'; export { ExpressAdapter, createExpressAdapter, expressReAuth } from './adapters/express.js'; export { HonoAdapter, honoReAuth } from './adapters/hono.js'; export { createCorsMiddleware, createRateLimitMiddleware, createSecurityMiddleware, createSecurityMiddlewares, createValidationMiddleware } from './middleware/security.js'; export { createReAuthHttpAdapter, generateApiSpec, getPluginNames, groupEndpointsByPlugin, validateConfig } from './utils/factory.js'; import '@re-auth/logger'; import '@re-auth/reauth'; import '@re-auth/reauth/services'; import 'hono/utils/cookie'; import 'express'; import 'hono';