The comment is definitely outdated, thanks for pointing it out!
As for the error, it’s suggesting that the kid
header value doesn’t match any known integration key. I would try capturing the generated token and pasting it into the debugger at https://jwt.io to verify it matches what you expect, if it does then maybe check the URL that you’re connecting to.