Features
Authentication
Complete authentication system with email/password and OAuth
ProStack includes a pre-built authentication system that supports both email/password authentication and social login options using BetterAuth.
What is BetterAuth?
BetterAuth is a comprehensive authentication solution that provides secure, customizable authentication for modern web applications. It offers features like:
- Email/password authentication
- Social logins
- Email verification
- Password reset
- Multi-factor authentication
- Team/organization management
- Role-based access control
Authentication Components
ProStack provides ready-to-use authentication components:
Sign In Form
Sign Up Form
OAuth Buttons
Authentication Flow
- Sign Up: User creates an account with email/password or social login
- Email Verification: If enabled, user verifies their email address
- Sign In: User signs in with credentials or social provider
- Session Management: User remains authenticated for the duration of their session
- Sign Out: User signs out, ending their session
Customizing Authentication
You can customize the authentication system through configuration in lib/auth/index.ts
:
You can extend the auth config or visit the BetterAuth docs for more information.
Next Steps
Was this page helpful?