---
title: "From Lovable to Claude Code: recover the auth decisions · Proxy Mail QA"
description: "Lovable chats may hold sign-up decisions the code doesn’t. Recover them for Claude Code, then retest confirmation and reset emails after the move."
url: https://proxymail.qa/switching/lovable-to-claude-code
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# From Lovable to Claude Code: recover the auth decisions

Your Lovable chats may be the only record of why confirmation is required or where a password reset should finish. Give Claude Code those decisions along with the repository.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it for fresh-account and auth-email evidence during a handoff, not for moving code, backends, users or passwords. A passing email flow is not proof of security or a completed migration.

## Exported code leaves questions unanswered

Claude Code here means the coding agent, not ordinary Claude chat. Ask it to explain existing behaviour before allowing edits.

Obtain source through Lovable’s Git sync, available on all plans, or the ZIP download, which needs a paid plan and which Enterprise admins can limit. This is not a promised import wizard. Source includes migrations/configuration, not the hosted database, storage or secrets.

Identify whether auth uses Lovable’s built-in backend (Lovable Cloud) or your own Supabase. Retaining it avoids combining a coding-tool change with a backend migration. Lovable separately documents a full database export containing accounts/password hashes for compatible Supabase restoration, not sessions. Providers, redirects, secrets, storage, functions and schedules remain separate work. “Passwords cannot export” is therefore too broad; “the repository moved our users” is also wrong.

Read the actual runtime: new TanStack Start apps from 13 May 2026 need server-capable hosting; older React/Vite apps may use static hosting. Missing server configuration or a callback pointing at the former preview can break auth without an obvious form error.

## Load instructions deliberately

Use `CLAUDE.md` or `.claude/rules/*.md`. A `CLAUDE.md` can take precedence over `AGENTS.md`; explicitly include `@AGENTS.md` when sharing that contract. Do not assume automatic discovery across versions. Check `/memory` and the Memory files section of `/context all` for loaded instructions and conflicts.

Record approved action hosts, final destinations, sender, verification gates and token replacement policy. Put credentials in environment variables or secrets, not these files or chat.

Connect the mail tool:

Terminal

```sh
claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp

```

Use **/mcp → proxymail-qa → Authenticate**, complete browser sign-in and choose the baseline project. Reuse an existing server entry. Claude Code needs its own browser to operate staging; MCP does not supply one. If its current mode cannot reach staging, ask for Playwright/Cypress tests for a person or CI to run, explicitly reporting them unexecuted.

## Before and after: test the contract, not the export

On owned or authorised local/dev/staging only, record the old revision and repeat after the first reviewed change. Never use production accounts or data. The [shared retest guide](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up) keeps comparisons consistent.

1. Use a stable `start_run` name and pass `run_id` to every supported call. Generate fresh details with `create_address` using `password: true`, or `form_values`. These are values, not app users; the browser submits the form. OAuth cannot reveal old saved passwords: use fresh accounts or a person with synthetic-fixture credentials.
2. Capture `since` before **every** submission, using `mark_submitted` if available. Refresh it for resends and pass it to `wait_for_code` or `wait_for_link`.
3. Sign up fresh; check unverified restrictions where policy requires them. Complete verification, reload, sign out and sign in. Check the approved provider action host and the final app destination, not only the outer URL.
4. Reset only if password auth supports it; otherwise mark N/A. New credentials must work, old ones fail, and a consumed link must not reset again. Separately leave A unused, request B, check A against policy and prove B works. If A may be consumed, test B using an independent equivalent fixture. Wait for actual expiry or record it skipped.
5. If the backend changes, carry a synthetic staging existing-user fixture through that process and test sign-in, identity and access. A new signup says nothing about existing-user continuity.
6. Run `check_email` for mail authentication, hosts and stated expiry. Bound `count_emails` by time and `type`, `subtype` and/or `category`; do not classify welcome mail as duplicate verification. Add app outcomes through `add_run_note`, using `failed: true` for failed browser assertions; record skips separately, then close with `finish_run`.

## A first task to copy

Copy the checklist and prompt together, and replace `[authorised staging URL]` with your authorised staging URL.

Prompt

```text
Read the Lovable export and loaded instructions without changes.
Explain who owns auth, email sending and redirects; list unknown policy.
Keep the existing backend. Propose one verification-session test for review.
Execute the supplied checklist on [authorised staging URL], or write runnable
Playwright/Cypress tests if browser access is unavailable. Label skips.
If the checklist is missing, request it before running.
Record failed browser assertions with add_run_note using failed: true;
record skips separately before finish_run.
Never disable confirmation or reset the owner's password.

```

## What remains unproven

Configure external-recipient sending. On your own Supabase project, that means custom SMTP. `check_delivery` observes receipt, not provider logs. MCP exposes no email bodies and never prefetches links. Expiry wording is not server enforcement; delivery is not all-recipient placement. SMS, social login, KYC and payments are outside this check.

Retain editor-independent repository tests and `PROXYMAIL_QA_API_KEY` in CI secrets. Remove app test users separately from inboxes.

## Sources

Documentation evidence checked 4 Dec 2026; not a personally tested migration.

- Lovable: [deployment](https://docs.lovable.dev/tips-tricks/external-deployment-hosting), [ownership](https://docs.lovable.dev/tips-tricks/deployment-hosting-ownership), [builder guide](https://proxymail.qa/built-with/lovable).
- Proxy Mail QA: [Claude Code setup](https://proxymail.qa/built-with/claude-code), [flow checks](https://proxymail.qa/docs/flow-checks), [MCP](https://proxymail.qa/docs/mcp).

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-lovable-to-claude-code)

## Related guides

- [Lovable to Cursor](https://proxymail.qa/switching/lovable-to-cursor): Change editors first, leave the backend where it is, and check the callbacks.
- [Lovable to Codex](https://proxymail.qa/switching/lovable-to-codex): Get the exported app running where Codex can reach it before you assign a change.
- [Lovable to Qoder](https://proxymail.qa/switching/lovable-to-qoder): Have Qoder list the sign-in settings a Lovable export doesn’t carry before it patches anything.
- [Lovable to Antigravity](https://proxymail.qa/switching/lovable-to-antigravity): Keep Lovable’s sign-in instead of drifting into Firebase, then compare before and after.

[See every email testing problem we solve](https://proxymail.qa/solve)

Lovable is a product of Lovable. Supabase is a trademark of Supabase, Inc. Claude Code is a product of Anthropic. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
