Authentication System
Enterprise-grade authentication powered by Auth.js with OAuth, JWT, sessions, RBAC, and native MoroJS integration.
Enterprise Authentication System
MoroJS includes comprehensive authentication support powered by Auth.js, providing secure, production-ready authentication with support for multiple providers, JWT tokens, sessions, RBAC, and more.
OAuth Providers
GitHub, Google, Discord, Microsoft, LinkedIn
Enterprise SSO
Okta, Auth0, AWS Cognito integration
RBAC System
Role-based access control with permissions
Security Features
CSRF protection, secure sessions, audit logging
Quick Setup
1. Environment Variables
2. Basic OAuth Integration
Role-Based Access Control (RBAC)
Built-in Route Protection
Protect routes with role-based access control, permissions, and custom authorization logic.
Native Auth.js Adapter
Zero Dependencies
MoroJS includes a native Auth.js adapter with zero external dependencies. No need for @auth/express
or other framework adapters.
What's Included
Authentication Methods
- OAuth Providers (GitHub, Google, Discord, etc.)
- Enterprise SSO (Okta, Auth0, AWS Cognito)
- Email/Magic Link authentication
- Credentials (username/password)
- OIDC (OpenID Connect) providers
Security Features
- JWT and Database session strategies
- CSRF protection
- Security audit logging
- Role-based access control (RBAC)
- Permission-based authorization