암호 키 유무에 따른 자동 리다이렉션 구현

This commit is contained in:
static
2024-12-28 18:55:20 +09:00
parent 173f4f5cfe
commit dfb56b62b1
4 changed files with 29 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
import { storeKeyPairIntoIndexedDB } from "$lib/indexedDB";
import { keyPairStore } from "$lib/stores";
type KeyType = "public" | "private";
@@ -48,7 +47,6 @@ export const generateKeyPair = async () => {
publicKey: keyPair.publicKey,
privateKey: privKeySecured,
});
await storeKeyPairIntoIndexedDB(keyPair.publicKey, privKeySecured);
return {
pubKeyBase64: await exportKeyToBase64(keyPair.publicKey, "public"),