From bd8be0efcb6dbfddd05947b5c34a98fe73301cb2 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 12 Nov 2024 16:06:29 -0800 Subject: [PATCH] Boot on bunker login --- src/app/views/LoginBunker.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/views/LoginBunker.svelte b/src/app/views/LoginBunker.svelte index da0b3876..2458ac38 100644 --- a/src/app/views/LoginBunker.svelte +++ b/src/app/views/LoginBunker.svelte @@ -2,6 +2,7 @@ import {onDestroy} from "svelte" import {Nip46Broker} from "@welshman/signer" import {addSession, nip46Perms} from "@welshman/app" + import {normalizeRelayUrl} from "@welshman/util" import {isKeyValid} from "src/util/nostr" import {showWarning} from "src/partials/Toast.svelte" import Input from "src/partials/Input.svelte" @@ -42,10 +43,9 @@ return showWarning("That connection string doesn't have any relays.") } - const success = await loginWithNip46(token, {pubkey, relays}) + const success = await loginWithNip46(token, {pubkey, relays: relays.map(normalizeRelayUrl)}) if (success) { - abortController.abort() boot() } } finally { @@ -61,6 +61,8 @@ secret: init.clientSecret, handler: {pubkey, relays: env.SIGNER_RELAYS}, }) + + boot() } })