diff options
| author | Adam Soltys <[email protected]> | 2024-11-21 23:46:31 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-21 23:46:31 -0800 |
| commit | ab6e16d90e255a34a972bd35bd3851a26f4de241 (patch) | |
| tree | fc68cbb8766c976cfa1a03e9c72388f37ae8df3e /src/lib/parse.ts | |
| parent | 7e1f8d7ceccaa2f48d3622fc03e11cf1894638ee (diff) | |
| download | coinos-ui-ab6e16d90e255a34a972bd35bd3851a26f4de241.tar.gz coinos-ui-ab6e16d90e255a34a972bd35bd3851a26f4de241.zip | |
redirect if not authed
Diffstat (limited to 'src/lib/parse.ts')
| -rw-r--r-- | src/lib/parse.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 03d21943..5082cc16 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -1,5 +1,5 @@ import { PUBLIC_DOMAIN } from "$env/static/public"; -import { get, isLiquid, auth, post, sats } from "$lib/utils"; +import { get, isLiquid, post, sats } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; import bip21 from "bip21"; import { validate } from "bitcoin-address-validation"; @@ -65,7 +65,8 @@ export default async (s, host) => { redirect(307, `/ecash/${id}`); } - if (t.startsWith("creq")) redirect(307, `/send/ecash/${t}`); + console.log("HI", t); + if (t.startsWith("creq")) redirect(307, `/send/ecash/${t}`); // user try { |
