feat: revamp nostr connect flow

This commit is contained in:
reya
2024-05-30 15:21:33 +07:00
parent 6d42360549
commit 41d0de539d
8 changed files with 113 additions and 216 deletions

View File

@@ -23,11 +23,12 @@ function Screen() {
try {
setLoading(true);
const npub = await NostrAccount.connectRemoteAccount(uri);
const remoteAccount = await NostrAccount.connectRemoteAccount(uri);
if (npub) {
navigate({
to: "/auth/settings",
if (remoteAccount?.length) {
return navigate({
to: "/auth/$account/settings",
params: { account: remoteAccount },
replace: true,
});
}