Compare commits
4 commits
297a430503
...
ea0823a9ea
Author | SHA1 | Date | |
---|---|---|---|
ea0823a9ea | |||
|
a8c029a271 | ||
|
b6c6c0f545 | ||
|
4ca76879c1 |
2 changed files with 2 additions and 3 deletions
|
@ -22,7 +22,7 @@ export const verifyRequest = (
|
|||
);
|
||||
|
||||
const encryptedData = new TextDecoder().decode(
|
||||
decipher.decrypt(decodeBase64(stringToCheck)),
|
||||
decipher.decrypt(decodeBase64(stringToCheck.replace(/-/g, "+").replace(/_/g, "/"))),
|
||||
);
|
||||
const [parsedTimestamp, parsedVideoId] = encryptedData.split("|");
|
||||
const parsedTimestampInt = parseInt(parsedTimestamp);
|
||||
|
|
|
@ -42,8 +42,7 @@ export const poTokenGenerate = async (
|
|||
});
|
||||
|
||||
const bgConfig: BgConfig = {
|
||||
fetch: (input: string | URL | globalThis.Request, init?: RequestInit) =>
|
||||
fetch(input, init),
|
||||
fetch: getFetchClient(konfigStore),
|
||||
globalObj: globalThis,
|
||||
identifier: visitorData,
|
||||
requestKey,
|
||||
|
|
Loading…
Reference in a new issue