appstore: add unlink account route

This commit is contained in:
Girish Ramakrishnan
2025-09-24 21:25:31 +02:00
parent a38ef2b6f5
commit 98d4d99c1b
11 changed files with 37 additions and 54 deletions
+2 -2
View File
@@ -42,10 +42,10 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null, result.body];
},
async resetCloudronId() {
async unlinkAccount() {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/appstore/reset_cloudron_id`, {}, { access_token: accessToken });
result = await fetcher.post(`${API_ORIGIN}/api/v1/appstore/unlink_account`, {}, { access_token: accessToken });
} catch (e) {
return [e];
}