Authentication Flow
The system supports a seamless authentication process for users:- Multiple Sign-in Methods: Email/password, Google OAuth, and magic links
- Secure Password Management: Hashed storage and robust password policies
- Session Management: Token-based authentication with configurable expiration
- Email Verification: Automated verification for new email accounts
- Password Recovery: Self-service password reset functionality
Authentication Methods
Email Authentication
Standard email and password authentication with security features:OAuth Authentication
Integration with Google OAuth for simplified sign-in:Magic Link Authentication
Passwordless authentication via email magic links:Session Management
OnlyAutomator handles user sessions through Supabase’s session API:User Profile Management
The authentication system also handles user profile data:Row-Level Security (RLS)
Supabase provides Row-Level Security for data protection:Authentication Context
A React Context provides authentication state throughout the application:Protected Routes
Routes can be protected based on authentication status:User Roles and Permissions
OnlyAutomator implements role-based access control through Supabase:Configuration
The authentication system is configured through environment variables:Security Considerations
The authentication system follows security best practices:- HTTPS Only: All authentication traffic is encrypted
- JWT Validation: Proper validation of JSON Web Tokens
- CORS Configuration: Restricts cross-origin requests
- Rate Limiting: Protection against brute-force attacks
- Session Expiration: Automatic expiry of inactive sessions
- Secure Cookies: HTTP-only cookies for session management