For the record, your code looks correct. What is the exact error you’re getting from the JWT library?
JWTs are just Base64 encoded JSONs – so the fact that it decodes properly doesn’t really tell you much.
If you’re getting invalid signature, probably means that it’s not signed correctly. In production, this means the JWT has been tampered with (man in the middle attack) and you should not trust that request. In development, it likely means that the secret is wrong.
The signature is the last few characters of the JWT, so if you truncated the JWT accidentally it would also cause an invalid signature error.
Every request from monday.com to your app will contain a JWT in the Authorization header. This token is signed using your app’s Signing Secret and can be decoded to retrieve additional metadata.
That is helpful, I had the same confusion when I was setting up mine too. Turns out it is listed as such in other parts of the docs, it’s just confusing depending on the page you’re reading.
BTW since we’re talking about docs: if you can use the “Did this page help you?” button at the bottom of each article to leave your feedback on confusing unhelpful articles, it’s really valuable. We just made it more accessible!