What problem does it solve?
Provides a complete authentication and authorization system for Bedrud API services, including JWT-based sessions, local and OAuth logins, passkeys, email verification, preferences, and consistent error handling, all secured by middleware and rate limiting.
Core Features & Use Cases
- JWT flow with access and refresh tokens, HttpOnly cookies, and refresh rotation.
- Local, OAuth, and Passkeys authentication flows with registration and login endpoints.
- Global and route-specific middleware for protected routes, access level checks, and rate limiting.
- User preferences, verification, and public settings for onboarding and security management.
- Health and readiness endpoints for service checks and TLS provisioning.
Quick Start
Integrate the Bedrud API auth module by wiring the JWT middleware and /api/auth routes into your server, then test login flows.