feat(plugins): add 2 new methods : user.getAccounts and user.getIdentities

This commit is contained in:
Paulhenry Saux
2026-07-29 13:14:09 +02:00
parent fc116a8b2f
commit 66ff523553
4 changed files with 50 additions and 1 deletions
+4
View File
@@ -175,6 +175,10 @@ function buildPluginApi(manifest: PluginManifest) {
remove: (key: string) => callApi('storage.remove', [key]),
keys: () => callApi('storage.keys', []),
},
user: {
getAccounts: () => callApi('user.getAccounts', []),
getIdentities: () => callApi('user.getIdentities', []),
},
http: {
post: (path: string, body: Record<string, unknown>) => callApi('http.post', [path, body]),
fetch: (url: string, init?: unknown) => callApi('http.fetch', [url, init]),