EventSub HMAC SHA256 Invalid on Production

Then I expect this is the problem, you are caclulating the hash using a reencoded JSON payload instead of the RAW payload

Yeah I thought it would but in PHP I always would refer to my headers as all lowercase.

Yeah it’s a very confusing code exmaple… Why waste as cycle toLowerCaseing whne they can be lowercase to start with…

EDIT TAG. YOU ARE IT!

1 Like