aboutsummaryrefslogtreecommitdiff
path: root/extension/src/entries/store/identity.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/entries/store/identity.ts')
-rw-r--r--extension/src/entries/store/identity.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/extension/src/entries/store/identity.ts b/extension/src/entries/store/identity.ts
index ef1941e..5bbc67a 100644
--- a/extension/src/entries/store/identity.ts
+++ b/extension/src/entries/store/identity.ts
@@ -1,3 +1,17 @@
+// Copyright (C) 2023 Vaughn Nugent
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as
+// published by the Free Software Foundation, either version 3 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'pinia'
import { } from 'lodash'
@@ -13,6 +27,7 @@ declare module 'pinia' {
createIdentity(id: Partial<NostrPubKey>): Promise<NostrPubKey>;
updateIdentity(id: NostrPubKey): Promise<NostrPubKey>;
selectKey(key: NostrPubKey): Promise<void>;
+ refreshIdentities(): Promise<void>;
}
}
@@ -40,6 +55,7 @@ export const identityPlugin = ({ store }: PiniaPluginContext) => {
selectKey: identity.selectKey,
deleteIdentity: identity.deleteIdentity,
createIdentity: identity.createIdentity,
- updateIdentity: identity.updateIdentity
+ updateIdentity: identity.updateIdentity,
+ refreshIdentities: identity.refreshKeys
}
} \ No newline at end of file