Swarmz

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.

Auth configuration panel

Providers

ProviderHow it works
Email + passwordSign-up with email verification
Magic linkPasswordless — user clicks a link sent to their inbox
OAuthGoogle, 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.

On this page