Can delete auth keys

This commit is contained in:
2021-05-14 15:04:22 +02:00
parent 7ac554e90e
commit 585a66ef0a
3 changed files with 53 additions and 5 deletions

View File

@ -265,4 +265,17 @@ export class AccountHelper {
id: adminID,
});
}
/**
* Delete an admin auth key
*
* @param adminID The id of the target admin
* @param keyID The id of the key to delete
*/
static async DeleteAuthKey(adminID: number, keyID: number) {
return await serverRequest("accounts/delete_auth_key", {
adminID: adminID,
keyID: keyID,
});
}
}