add migrate page

This commit is contained in:
Ren Amamiya
2023-07-10 13:39:53 +07:00
parent df409afeed
commit 4e36b2d902
6 changed files with 225 additions and 2 deletions

View File

@@ -447,3 +447,12 @@ export async function getUserMetadata(pubkey: string) {
return null;
}
}
// delete privkey
export async function removePrivkey() {
const db = await connect();
const activeAccount = await getActiveAccount();
return await db.execute(
`UPDATE accounts SET privkey = "privkey is stored in secure storage" WHERE id = "${activeAccount.id}";`
);
}