Can disconnect user from UI

This commit is contained in:
2025-11-06 21:33:09 +01:00
parent 8bbbe7022f
commit 70a246355b
4 changed files with 62 additions and 2 deletions

View File

@@ -23,4 +23,14 @@ export class MatrixLinkApi {
jsonData: { code, state },
});
}
/**
* Disconnect from Matrix Account
*/
static async Disconnect(): Promise<void> {
await APIClient.exec({
uri: "/matrix_link/logout",
method: "POST",
});
}
}