I'm trying to authenticate a Github app. I generated the JWT using Ruby script provided here.
I then ran this curl script as instructed:
curl -i -H "Authorization: Bearer YOUR_JWT" -H "Accept: application/vnd.github.machine-man-preview+json" https://api.github.com/app
I placed my JWT in the necessary place but it didn't work. I get a 401 response with the following message:
A JSON web token could not be decoded
Can anybody tell me what is wrong here?