Sign-in methods
Users change their password from the user menu in the sidebar, which opens the change password dialog.
Frontend auth state
Auth state lives in:- Access token.
- Refresh token.
- Current user.
- Authentication status.
Authenticated requests
All authenticated frontend calls should use:- Adds
Authorization: Bearer <token>. - Refreshes tokens before requests when needed.
- Retries once after
401. - Logs out when refresh fails.
- Parses backend
detailerrors intoAuthError.
Route guards
Frontend guards live in:
Users who fail a guard are redirected to
/chat.
Role levels
Access grants
Grants control which users can use or edit a specific agent. A grant is created in one of three ways:
Grant endpoints:
Admins review and manage grants from the Users admin area at
/admin/users.