Auth Collections
Auth collections handle user authentication and authorization. When you enable "Is Auth Collection" on a collection, it gains additional capabilities for managing users.
What Changes
When a collection becomes an auth collection:
| Feature | Description |
|---|---|
| Roles Tab | Define user roles with conditions |
| Options → General | Additional auth-specific fields appear |
| Options → Register Form | Configure registration fields |
| Options → Profile | Configure profile and session fields |
Enabling Auth Collection
-
Go to your collection's Options tab
-
Check Is Auth Collection
-
Configure the required fields:
- Username Field - Field used for login (usually email)
- Password Field - Field storing the password
- Access Blocker Field - Optional field to block access
-
Click Save Changes
Use Cases
- User management
- Employee directory
- Customer accounts
- Multi-tenant applications
Next Steps
- Roles — Define roles and access conditions
- Register Form — Configure registration
- Profile & Session — Configure profile fields
- ERD View — Visualize your auth schema