From cef73f96942955d1516a9e72c9fda6b392a4953e Mon Sep 17 00:00:00 2001 From: Dorian Date: Tue, 17 Feb 2026 04:00:40 +0000 Subject: [PATCH] feat: add Nostr Connect login functionality and update routing - Introduced a new login option in AuthModal for Nostr Connect using remote signer (Primal), enhancing authentication methods. - Updated the router to include a new path for Nostr Connect callback, allowing for seamless integration after remote signer approval. - Enhanced error handling in AuthModal to surface Nostr Connect errors, improving user feedback during the login process. These changes improve the authentication experience by providing additional login options and ensuring robust error management. --- src/components/AuthModal.vue | 40 +++++++++- src/composables/useNostrConnect.ts | 121 +++++++++++++++++++++++++++++ src/router/index.ts | 8 ++ src/views/NostrCallback.vue | 56 +++++++++++++ tsconfig.tsbuildinfo | 2 +- 5 files changed, 225 insertions(+), 2 deletions(-) create mode 100644 src/composables/useNostrConnect.ts create mode 100644 src/views/NostrCallback.vue diff --git a/src/components/AuthModal.vue b/src/components/AuthModal.vue index 857cdae..cedfb82 100644 --- a/src/components/AuthModal.vue +++ b/src/components/AuthModal.vue @@ -66,6 +66,18 @@ Sign in with Nostr Extension + + +