mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
프론트엔드 암호 모듈 리팩토링
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { signRequest } from "$lib/modules/crypto";
|
||||
import { signRequestBody } from "$lib/modules/crypto";
|
||||
|
||||
export const refreshToken = async () => {
|
||||
return await fetch("/api/auth/refreshToken", { method: "POST" });
|
||||
@@ -36,6 +36,6 @@ export const callSignedPostApi = async <T>(input: RequestInfo, payload: T, signK
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: await signRequest(payload, signKey),
|
||||
body: await signRequestBody(payload, signKey),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ interface KeyExportState {
|
||||
signKeyBase64: string;
|
||||
verifyKeyBase64: string;
|
||||
|
||||
masterKeyWrapped: ArrayBuffer;
|
||||
masterKeyWrapped: string;
|
||||
}
|
||||
|
||||
const useAutoNull = <T>(value: T | null) => {
|
||||
|
||||
Reference in New Issue
Block a user