Hi and thank you for your tool,
I noticed an error in your checkSignature
function in the documentation : Assembly Notifications | Transloadit
export const checkSignature = (fields, authSecret) => {
const receivedSignature = fields.signature[0];
const payload = fields.transloadit[0];
//...
};
I use formidable v3.5.2 and form.parse
return fields as Record<string, string[]>
not Record<string, string>
so we need to take the first element.
without this modification the signature verification will fail every time.
Have a good day.
Hugues