클라이언트 승인 대기 페이지 구현

This commit is contained in:
static
2024-12-31 21:58:13 +09:00
parent ccad4fbd8b
commit e5cbd46b35
13 changed files with 243 additions and 59 deletions

View File

@@ -11,7 +11,7 @@
requestClientRegistration,
storeClientKeys,
requestTokenUpgrade,
requestInitialMekRegistration,
requestInitialMasterKeyRegistration,
} from "./service";
import IconKey from "~icons/material-symbols/key";
@@ -72,11 +72,7 @@
throw new Error("Failed to upgrade token");
if (
!(await requestInitialMekRegistration(
data.mekDraft,
$clientKeyStore.encryptKey,
$clientKeyStore.signKey,
))
!(await requestInitialMasterKeyRegistration(data.masterKeyWrapped, $clientKeyStore.signKey))
)
throw new Error("Failed to register initial MEK");