mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 14:04:23 +01:00
ConnectSigner: implement getRelays, support nprofile auth again
This commit is contained in:
@@ -22,6 +22,9 @@ export const signerMiddleware: AppMiddleware = async (c, next) => {
|
||||
case 'npub':
|
||||
c.set('signer', new ConnectSigner(decoded.data));
|
||||
break;
|
||||
case 'nprofile':
|
||||
c.set('signer', new ConnectSigner(decoded.data.pubkey, decoded.data.relays));
|
||||
break;
|
||||
case 'nsec':
|
||||
c.set('signer', new NSecSigner(decoded.data));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user