diff options
| author | Adam Soltys <[email protected]> | 2024-08-30 20:04:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-30 20:04:13 -0700 |
| commit | 20337319212896c484ac0f8d3dfbac3b8d26f089 (patch) | |
| tree | 591c0aa104320813a3b7d2579acd5cf8b401842b /src/lib/parse.ts | |
| parent | 3e2d9c5758d92fccc19e44842e0b9d4a252630ff (diff) | |
| download | coinos-ui-20337319212896c484ac0f8d3dfbac3b8d26f089.tar.gz coinos-ui-20337319212896c484ac0f8d3dfbac3b8d26f089.zip | |
typescript
Diffstat (limited to 'src/lib/parse.ts')
| -rw-r--r-- | src/lib/parse.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 09c6f320..6995f207 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -1,10 +1,10 @@ -import { auth, get, isLiquid, post } from "$lib/utils"; +import { get, isLiquid, post } from "$lib/utils"; import bip21 from "bip21"; import { validate } from "bitcoin-address-validation"; import { PUBLIC_DOMAIN } from "$env/static/public"; import { redirect } from "@sveltejs/kit"; -export default async (t, host, cookies) => { +export default async (t, host) => { if (!t) return; if (t.startsWith("http")) redirect(307, t); @@ -58,7 +58,7 @@ export default async (t, host, cookies) => { } if (t.startsWith("cashu")) { - let { id } = await post("/cash", { token: t }, auth); + let { id } = await post("/cash", { token: t }); redirect(307, `/ecash/${id}`); } |
