feat: update and get local user private key path

This commit is contained in:
Levi Yan
2025-05-06 22:52:54 +08:00
parent f22c1c231b
commit d5487fa6b7
2 changed files with 14 additions and 0 deletions

View File

@@ -115,6 +115,8 @@ export class DevStarExtension {
fs.unlinkSync(this.user.getUserPublicKeyPath())
}
console.log("User's ssh key has been deleted!")
// 更新local user private key path
this.user.updateLocalUserPrivateKeyPath("")
// 退出登录
this.user.logout()
})