diff options
| author | Adam Soltys <[email protected]> | 2026-10-13 16:23:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-13 16:23:39 -0700 |
| commit | 558a7c5a08cb172dbe229675a6b330611000d3fc (patch) | |
| tree | 417137684074004e4334e78be9d682d61c1d4797 /src/routes/(app)/nsec | |
| parent | e9ae62fe22c104e9403dfba299d6ac6a3210b757 (diff) | |
| download | coinos-ui-master.tar.gz coinos-ui-master.zip | |
Without the sk cookie from a password login (nostr logins, older
sessions) the reveal button was hidden and signing failed. Ask for the
password and get the key from /nsec instead.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UjHzoBmW1iPpEe5qC2LDYB
Diffstat (limited to 'src/routes/(app)/nsec')
| -rw-r--r-- | src/routes/(app)/nsec/+server.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/nsec/+server.ts b/src/routes/(app)/nsec/+server.ts new file mode 100644 index 00000000..ceead0d5 --- /dev/null +++ b/src/routes/(app)/nsec/+server.ts @@ -0,0 +1,7 @@ +import { json } from "@sveltejs/kit"; +import { auth, post } from "$lib/utils"; + +export async function POST({ cookies, request }) { + const result = await post("/nsec", await request.json(), auth(cookies)); + return json(result); +} |
