Add button to reset the cloudron id if appstore token is invalid
This commit is contained in:
@@ -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];
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user