---
title: Test with Authentication
description: For apps that require login, your agent logs in once and saves the session, then restores it automatically on future runs.
---

# Test with Authentication

<div class="view-markdown-wrapper">
<ViewMarkdown />
</div>

For apps that require login, your agent logs in once and saves the session. Future sessions restore it automatically — no login flow needed.

**First time — login and save:**

```
/shiplight verify http://localhost:3000/dashboard — log in with
test@example.com / password123
```

**Subsequent sessions — the agent restores the saved session automatically:**

```
/shiplight verify http://localhost:3000/dashboard loads correctly
```

For OAuth, SSO, and other complex login flows, a [persistent Chrome profile](/local/browser-automation/persistent-profile) is often simpler.
