Add button to reset the cloudron id if appstore token is invalid

This commit is contained in:
Johannes Zellner
2025-05-23 15:11:35 +02:00
parent 48e2a79d8f
commit a88d523559
4 changed files with 57 additions and 10 deletions
+11
View File
@@ -53,6 +53,17 @@ function create() {
if (result.status !== 201) return [result];
return [null];
},
async resetCloudronId() {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/appstore/reset_cloudron`, {}, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 202) return [result];
return [null];
},
};
}