diff --git a/src/lib/helpers/verifyRequest.ts b/src/lib/helpers/verifyRequest.ts index 2a0ae08..3f60e4f 100644 --- a/src/lib/helpers/verifyRequest.ts +++ b/src/lib/helpers/verifyRequest.ts @@ -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);