ui(account): implement delete security key button

This commit is contained in:
Matthew Penner 2021-07-17 14:43:15 -06:00
parent 59f2ea37d8
commit 28bc86e23b
3 changed files with 41 additions and 9 deletions

View file

@ -0,0 +1,9 @@
import http from '@/api/http';
export default (id: number): Promise<void> => {
return new Promise((resolve, reject) => {
http.delete(`/api/client/account/webauthn/${id}`)
.then(() => resolve())
.catch(reject);
});
};