diff --git a/src/controllers/api/oauth.ts b/src/controllers/api/oauth.ts index 334b4f0a..2804df60 100644 --- a/src/controllers/api/oauth.ts +++ b/src/controllers/api/oauth.ts @@ -119,6 +119,7 @@ async function getToken( const nip46Seckey = generateSecretKey(); const signer = new NConnectSigner({ + encryption: 'nip44', pubkey: bunkerPubkey, signer: new NSecSigner(nip46Seckey), relay: await Storages.pubsub(), // TODO: Use the relays from the request. diff --git a/src/signers/ConnectSigner.ts b/src/signers/ConnectSigner.ts index de1b5fc9..89c62679 100644 --- a/src/signers/ConnectSigner.ts +++ b/src/signers/ConnectSigner.ts @@ -25,6 +25,7 @@ export class ConnectSigner implements NostrSigner { async init(signer: NostrSigner): Promise { return new NConnectSigner({ + encryption: 'nip44', pubkey: this.opts.bunkerPubkey, // TODO: use a remote relay for `nprofile` signing (if present and `Conf.relay` isn't already in the list) relay: await Storages.pubsub(),