aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/parse.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/parse.ts')
-rw-r--r--src/lib/parse.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts
index 663b2e42..e8d8bafd 100644
--- a/src/lib/parse.ts
+++ b/src/lib/parse.ts
@@ -105,10 +105,8 @@ export default async (s, host, cookies) => {
.join("");
}
- if (t.startsWith("cashu")) {
- const { id } = await post("/cash", { token: t });
- redirect(307, `/ecash/${id}`);
- }
+ // The token rides in the URL; the ecash page asks the server for its status.
+ if (t.startsWith("cashu")) redirect(307, `/ecash/${encodeURIComponent(t)}`);
if (t.startsWith("creq")) redirect(307, `/send/ecash/${t}`);