Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/blocks/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Login blocks provide ready-to-use authentication interfaces for user sign-in and registration. From simple email/password forms to advanced SSO and magic link authentication, these components cover all common authentication patterns.Available Blocks
Login with Email and Google
Email-based login with Google OAuth integration
Login with Email, Password and Google
Traditional email/password form with Google sign-in option
Login with Email and Password
Simple email and password authentication form
Login with Social Buttons
Multiple social login providers (Google, GitHub, Facebook, etc.)
Login Card Signup Form
Registration form with card layout
Login with Magic Link and SSO
Passwordless magic link authentication with SSO support
Login Full Page with Icons
Full-page login layout with brand icons and visuals
Login with SSO
Enterprise SSO authentication interface
Login Signup with Role Selection
Registration form with user role or account type selection
Authentication Methods
Email & Password
Traditional authentication with email and password. Includes forgot password functionality.Social Login
OAuth integration with providers like Google, GitHub, Microsoft, and more.Magic Link
Passwordless authentication via email link. Better UX and security.SSO (Single Sign-On)
Enterprise authentication with SAML or OAuth providers.Role-based Registration
Allow users to select their role or account type during signup.Use Cases
SaaS Applications
SaaS Applications
Implement user authentication for SaaS products with support for individual users and enterprise SSO.
Consumer Apps
Consumer Apps
Use social login buttons to reduce friction and increase conversion rates for consumer applications.
Enterprise Portals
Enterprise Portals
Deploy SSO-based authentication for enterprise customers who need centralized identity management.
Multi-tenant Platforms
Multi-tenant Platforms
Implement role selection during signup to route users to appropriate dashboards and experiences.
Passwordless Apps
Passwordless Apps
Use magic link authentication for improved security and user experience without password management.
Implementation Example
Social Login Integration
Implement OAuth providers:When implementing social login, ensure you handle OAuth callbacks properly and store user sessions securely. Use established libraries like NextAuth.js, Supabase Auth, or Firebase Authentication.
Best Practices
Security
- HTTPS Only: Always use HTTPS for authentication pages
- Password Requirements: Enforce strong password policies
- Rate Limiting: Prevent brute force attacks with rate limits
- CSRF Protection: Implement CSRF tokens for form submissions
- Session Management: Use secure, HTTP-only cookies
- 2FA Support: Offer two-factor authentication for enhanced security
User Experience
- Clear Error Messages: Be specific but don’t reveal whether email exists
- Loading States: Show feedback during authentication
- Remember Me: Offer option to stay logged in
- Password Visibility: Toggle to show/hide password
- Auto-focus: Focus email field on page load
- Link to Signup: Clear path to create account
- Forgot Password: Easy access to password reset
Form Validation
Magic Link Authentication
Implement passwordless auth:SSO Configuration
For enterprise SSO:Error Handling
Provide helpful error messages:| Error | User Message |
|---|---|
| Invalid credentials | ”Email or password is incorrect” |
| Account not found | ”No account found with this email” |
| Account locked | ”Account locked. Contact support” |
| Network error | ”Connection failed. Please try again” |
| Rate limited | ”Too many attempts. Try again in 5 minutes” |
Accessibility
- Label all form inputs clearly
- Provide error messages with ARIA live regions
- Ensure keyboard navigation works
- Use appropriate input types (email, password)
- Support password managers
- Clear focus indicators
- Screen reader friendly error messages
Password Reset Flow
Related Components
- Form Layout - Additional form patterns
- Dialogs - Modal login forms
- Onboarding - Post-login onboarding flows