Authentication
Email, OAuth, and magic link sign-in with session management
Cloud includes a full auth system. Tell the agent what providers you want and it'll scaffold the sign-up flow, login page, protected routes, and session handling.

Providers
| Provider | How it works |
|---|---|
| Email + password | Sign-up with email verification |
| Magic link | Passwordless — user clicks a link sent to their inbox |
| OAuth | Google, GitHub, Discord, and others |
Example prompt
Add authentication with email/password sign-up and Google OAuth.
Include a login page, sign-up page, and protected dashboard route.The agent creates the auth pages, wires up the providers, and adds route protection.
Session handling
Sessions are managed automatically. Use the useAuth hook to check login state:
const { user, signOut } = useAuth();
if (!user) return <Navigate to="/login" />;Protected routes
Wrap any route in ProtectedRoute to require authentication:
<Route path="/dashboard" element={
<ProtectedRoute>
<Dashboard />
</ProtectedRoute>
} />Users who aren't logged in get redirected to the login page.