---
title: "Sign-in with a saved account"
description: "Loam Studio's sign-in on a device that remembers its last account: Welcome back, the account as one row with Continue, and another account's form in its place."
plan: Pro
docs: https://ui.edbn.me/docs/templates/sign-in-with-saved-account
---

# Sign-in with a saved account

Loam Studio's sign-in on a device that remembers its last account: Welcome back, the account as one row with Continue, and another account's form in its place.

One card under the shop's header: Welcome back, then the saved account as a single row with its initials, name, email and Continue. Continue swaps its label for a spinner at the same width, then signs in and moves focus to the confirmation. Not you? Use another account swaps the row for email and password in place, on the Pro forms, and moves focus to the email; Back to Hana swaps it back and returns focus to Continue. A refused password clears it and shows one alert that never says which field was wrong. It opens with Hana Sato's account saved; sample={false} opens it as a device that remembers no one, with the form alone. On phones the card takes the width with a 16px gutter.

A Pro page template built on Base UI and Tailwind CSS v4.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/sign-in-with-saved-account
```

## Dependencies
- npm: lucide-react@^1.33.0, zod@^4.3.5
- edbn: edbn-base, alert, avatar, button, card, item, text-link, form-core, form-fields

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More authentication templates

All 10, with install commands: https://ui.edbn.me/docs/templates/authentication (Markdown: https://ui.edbn.me/docs/templates/authentication.md)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
