diff options
| author | Adam Soltys <[email protected]> | 2026-08-03 10:09:09 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-03 10:09:09 -0700 |
| commit | 4d09a091d0aa6a63860260637feddc1e11bed708 (patch) | |
| tree | f2457ac5c29ff27ec17d1379e04188491d384260 /src/features | |
| parent | 258f815bea0bd0e44091bda8b48b83ff15e39aa6 (diff) | |
| download | coinosv3-4d09a091d0aa6a63860260637feddc1e11bed708.tar.gz coinosv3-4d09a091d0aa6a63860260637feddc1e11bed708.zip | |
Onboarding: a step for migrating a legacy coinos.io account
Between "do you have a nostr account" and claiming a username, new users
are asked whether they already have an account on the original coinos.
Yes hands off to coinos.io/migrate with their fresh v3 payment address
and a return URL — they're already signed in there, so no password or
key ever travels. That page sweeps the balance over Lightning and
renames the old account, releasing the username.
Coming back, coinos.io returns ?migrated=<username>; v3 claims that name
on the registrar (retrying for a minute, since the registrar's
"is this a legacy user?" guard caches), and their lightning address now
resolves to the v3 wallet.
The legacy page ships in coinos-ui and is NOT deployed yet.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/names.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js index 788c944..edc3be1 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -385,6 +385,8 @@ export function namesFeature(ctx) { namesAddress() { const st = load(); return st.name ? `${st.name}@${st.domain || DOMAIN}` : null; }, // the onboarding wizard renders the same claim form on its username step namesClaimForm() { return claimForm(true); }, + // claim a specific name (the migration flow, after coinos.io released it) + namesClaimName(name) { return claim(String(name).toLowerCase()); }, stop() { clearTimeout(retryTimer); clearTimeout(deadline); deadline = null; }, receiveModes() { if (!available()) return []; |
