feat(plugins): add 2 new methods : user.getAccounts and user.getIdentities
This commit is contained in:
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user