Refactor Nostr auth service

This commit is contained in:
2026-04-20 12:34:44 +04:00
parent c57a665655
commit 1dc0c4119b
3 changed files with 117 additions and 112 deletions

View File

@@ -15,7 +15,7 @@ export default class NostrConnectComponent extends Component {
@action
async connectExtension() {
try {
await this.nostrAuth.login('extension');
await this.nostrAuth.connectWithExtension();
if (this.args.onConnect) {
this.args.onConnect();
}
@@ -28,7 +28,7 @@ export default class NostrConnectComponent extends Component {
@action
async connectApp() {
try {
await this.nostrAuth.login('connect');
await this.nostrAuth.connectWithApp();
if (this.args.onConnect) {
this.args.onConnect();
}