in source/client/src/liveness/utils/APIUtils.ts [68:89]
static async putChallengeFrame(
challengeId: string,
token: string,
frameBase64: string,
timestamp: number
): Promise<void> {
const path: string = ConfigUtils.getConfig().API_FRAMES_ENDPOINT_PATTERN.replace("{challengeId}", challengeId);
const init = {
headers: await APIUtils.getAuthorizationHeader(),
body: {
token: token,
timestamp: timestamp,
frameBase64: frameBase64
}
};
LogUtils.info("putChallengeFrame:");
LogUtils.info(init);
return API.put(ConfigUtils.getConfig().API_NAME, path, init).then(result => {
LogUtils.info(result);
return result;
});
}