About elysia-auth
Project Overview
elysia-auth is an authentication middleware designed specifically for Elysia.js applications. Built on top of the robust @auth/core library, it provides a seamless authentication experience while maintaining the performance benefits of the Bun runtime.
Key Features
1. Authentication Providers
- Support for 50+ authentication providers
- OAuth integration (Google, GitHub, Discord, etc.)
- Email/Password authentication
- JWT-based sessions
2. Middleware Solutions
- Route-specific protection with
authGuard
- Global path protection with
protectPaths
- Flexible configuration options
3. Type Safety
- Full TypeScript support
- Type-safe configurations
- Custom type definitions
4. Performance
- Optimized for Bun runtime
- Minimal overhead
- Efficient session management
Architecture
elysia-auth is built with a modular architecture:
Contributing
We welcome contributions! Here’s how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT License - feel free to use in your projects!
Support
Need help? You can:
Credits
This project is made possible thanks to:
- Elysia.js
- @auth/core
- Bun
- All our contributors!