auth=True, you can gate access to your agent and manage users effortlessly.
Enabling Auth
To enable authentication, simply passauth=True to the @agent decorator:
Accessing User Data
Whenauth=True, the context.user object is populated with the authenticated user’s information:
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the user |
email | string | User’s email address |
name | string | User’s full name |
org | string | Organization ID the user belongs to |
User Management
When auth is enabled, Cycls handles the entire login flow, including:- Sign up / Sign in UI
- Email verification
- Session management
- JWT token handling
Next Steps
Cloud Deployment
Deploy your agent to a global serverless network.