Authentication Setup
Control who can access your deployed chatbot by requiring authentication.
Overview
By default, chatbots are open to anyone with the link. You can require users to log in before chatting.
Enable Authentication
- Open your chatbot
- Go to "Settings" > "Users"
- Toggle "Require Authentication"
- Click "Save"
Authentication Methods
| Method | Description |
|---|---|
| Email/Password | Users create accounts with email |
| Sign in with Google account | |
| Microsoft | Sign in with Microsoft account |
Configure available methods in "Settings" > "Users" > "Auth Methods".
How It Works
When authentication is required:
- User visits your chatbot URL
- Login screen appears
- User signs in or creates account
- After authentication, chat is accessible
graph LR
A[Visit Chatbot] --> B{Authenticated?}
B -->|No| C[Show Login]
C --> D[User Logs In]
D --> E[Access Granted]
B -->|Yes| E
E --> F[Chat Interface]
Firebase Authentication
WizChat uses Firebase for authentication. Your chatbot gets:
- Secure user management
- Multiple auth providers
- Session management
- Password recovery
Session Management
Session Duration
Sessions last until:
- User logs out
- Browser is closed (optional)
- Session expires (configurable)
Configure in "Settings" > "Users" > "Session Settings".
Session Tokens
- Tokens are securely stored
- Refresh automatically
- Can be revoked
Customizing the Login Page
Customize the login experience:
- Go to "Settings" > "Users" > "Login Page"
- Add your logo
- Customize welcome message
- Choose color scheme
Testing Authentication
- Deploy your chatbot
- Open in incognito/private window
- Verify login screen appears
- Test sign-in flow
Troubleshooting
Users Can't Log In
- Verify authentication is properly configured
- Check Firebase console for errors
- Ensure email verification settings are correct
Session Issues
- Clear browser cookies
- Check session duration settings
- Verify token configuration