Rename session methods

This commit is contained in:
Jon Staab
2024-09-09 10:26:59 -07:00
parent 02dae9d463
commit 1dd1d1b501
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/app", "name": "@welshman/app",
"version": "0.0.3", "version": "0.0.4",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of svelte stores for use in building nostr client applications.", "description": "A collection of svelte stores for use in building nostr client applications.",
+2 -2
View File
@@ -44,9 +44,9 @@ export const nip46Perms = "sign_event:22242,nip04_encrypt,nip04_decrypt,nip44_en
export const getSigner = memoize((session: Session) => { export const getSigner = memoize((session: Session) => {
switch (session?.method) { switch (session?.method) {
case "extension": case "nip07":
return new Nip07Signer() return new Nip07Signer()
case "privkey": case "nip01":
return new Nip01Signer(session.secret!) return new Nip01Signer(session.secret!)
case "nip46": case "nip46":
return new Nip46Signer(Nip46Broker.get(session.pubkey, session.secret!, session.handler!)) return new Nip46Signer(Nip46Broker.get(session.pubkey, session.secret!, session.handler!))