feat: implement logout hook and add a new plugin api method to perform logout

This commit is contained in:
Paulhenry Saux
2026-08-01 21:46:33 +02:00
parent 66ff523553
commit d15c58f8da
6 changed files with 43 additions and 8 deletions
+1
View File
@@ -178,6 +178,7 @@ function buildPluginApi(manifest: PluginManifest) {
user: {
getAccounts: () => callApi('user.getAccounts', []),
getIdentities: () => callApi('user.getIdentities', []),
logout: () => callApi('user.logout', []),
},
http: {
post: (path: string, body: Record<string, unknown>) => callApi('http.post', [path, body]),