Compare commits

...

4 commits

Author SHA1 Message Date
ea0823a9ea
Merge remote-tracking branch 'upstream/master'
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m4s
2024-12-15 22:48:26 -03:00
Emilien
a8c029a271 fixing wrong variable usage for urlToRedirect
fixes #17
2024-12-16 00:04:37 +01:00
Emilien
b6c6c0f545 bgutils generate use proxy 2024-12-14 22:57:19 +01:00
Emilien
4ca76879c1 fixing invalid InvalidCharacterError web safe base64 encoding 2024-12-14 18:10:55 +01:00
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -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,