From 918f4b29bc66be343914fd4c9284375825c57fdf Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Feb 2026 13:46:15 -0800 Subject: cleanup --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/utils.ts') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index d3333280..33737b50 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -11,7 +11,6 @@ import { differenceInMinutes, differenceInSeconds, } from "date-fns"; -import { decrypt } from "nostr-tools/nip49"; import { get as getStore } from "svelte/store"; export function scroll(section: any) { @@ -207,6 +206,7 @@ export const login = async ( cookies.set("token", token, opts); if (u.nsec) { try { + const { decrypt } = await import("nostr-tools/nip49"); cookies.set("sk", bytesToHex(decrypt(u.nsec, user.password)), { ...opts, httpOnly: false, -- cgit v1.2.3