save the private key to the keychain and not user defaults

This commit is contained in:
Thomas Rademaker
2022-12-22 18:13:33 -05:00
parent 68e9c127f9
commit 6a8100152f
6 changed files with 89 additions and 19 deletions

View File

@@ -36,7 +36,7 @@ struct MainView: View {
}
}
.onReceive(handle_notify(.logout)) { _ in
clear_keypair()
try? clear_keypair()
keypair = nil
}
.onAppear {