add encrypted Nostr session sharing (#8922)

Signed-off-by: callebtc <93376500+callebtc@users.noreply.github.com>
Signed-off-by: Douwe Osinga <douwe@squareup.com>
Signed-off-by: Michael Neale <michael.neale@gmail.com>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
callebtc
2026-05-12 22:06:44 -05:00
committed by GitHub
parent 8c36ba86c6
commit dbbee1cdbf
17 changed files with 1469 additions and 27 deletions
+12
View File
@@ -1,6 +1,18 @@
import { fetchSharedSessionDetails, SharedSessionDetails } from './sharedSessions';
import { View, ViewOptions } from './utils/navigationUtils';
import { errorMessage } from './utils/conversionUtils';
import { importSessionNostr } from './api';
/**
* Imports a session from an encrypted Nostr deep link.
* Separated from shared-session handling so callers can route independently.
*/
export async function importNostrSessionFromDeepLink(url: string): Promise<void> {
await importSessionNostr({
body: { deeplink: url },
throwOnError: true,
});
}
/**
* Handles opening a shared session from a deep link