mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 15:08:46 +00:00
암호 키 등록 후 Refresh Token 업그레이드 구현
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import {
|
||||
createBlobFromKeyPairBase64,
|
||||
requestPubKeyRegistration,
|
||||
requestTokenUpgrade,
|
||||
storeKeyPairPersistently,
|
||||
} from "./service";
|
||||
|
||||
@@ -40,7 +41,12 @@
|
||||
|
||||
if (await requestPubKeyRegistration(data.pubKeyBase64, $keyPairStore.privateKey)) {
|
||||
await storeKeyPairPersistently($keyPairStore);
|
||||
await goto(data.redirectPath);
|
||||
|
||||
if (await requestTokenUpgrade(data.pubKeyBase64)) {
|
||||
await goto(data.redirectPath);
|
||||
} else {
|
||||
// TODO: Error handling
|
||||
}
|
||||
} else {
|
||||
// TODO: Error handling
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user