From 8076d1323566fe90a43f857384e5e46c257c692a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 2 Dec 2026 10:41:29 -0700 Subject: names: /migrate-grant needs a fresh v3 hand-off stamp from coinos.io. "Fix the gap" (Adam, 2026-12-02). The reverted check keyed on `migrated`, which coinos.io has set on every new account since 2023, so it stopped nothing (c851718). coinos-server 796999cb now records `v3migrated`, a timestamp set only when an account's own session posts the hand-off, and shows it on /api/users/. The grant follows within seconds, so it goes ahead only when that stamp is under 5 minutes old. That is the same proof as carrying the old account's session to /api/me, without sending coinos.io JWTs (no expiry, no revocation) to this host. A name handed over earlier can't be re-granted to a different key unless its owner hands it over again. Refused: stale, future-dated or missing stamp (409); no such account (404); coinos.io unreachable (502, the caller retries). migrate-check.test.js runs in `bun run test` (18 pass). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 1915df8..c60e8f0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Server-side services for coinos v3: the payment-name registrar, NWC push, Blossom sync storage, the public feed and media proxy", "license": "MIT", "scripts": { - "test": "bun test names/store.test.js names/forget.test.js bridge/ln.test.js", + "test": "bun test names/store.test.js names/forget.test.js bridge/ln.test.js names/migrate-check.test.js", "names": "bun names/server.js", "nwcpush": "bun nwcpush/server.js", "blossom": "bun blossom/server.js", -- cgit v1.2.3