프론트엔드 암호 모듈 리팩토링

This commit is contained in:
static
2025-01-03 12:21:53 +09:00
parent afe672228a
commit aad5617d25
15 changed files with 336 additions and 298 deletions

View File

@@ -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),
});
};