Render textured aerial maps and support legacy recovery links

This commit is contained in:
2026-10-05 18:11:12 +05:00
parent dcc3779262
commit 2cbaf45340
12 changed files with 226 additions and 35 deletions

View File

@@ -0,0 +1,14 @@
import { test } from "node:test";
import assert from "node:assert/strict";
import { legacyRecoveryToken } from "../shared/legacy-recovery";
test("legacy recovery email path yields only its code segment", () => {
assert.equal(legacyRecoveryToken("/code=abc12345-6789"), "abc12345-6789");
for (const path of [
"/code=short",
"/code=abc12345/other",
"/code=abc%2F12345",
"/auth/callback",
])
assert.equal(legacyRecoveryToken(path), null);
});