bash instructions for creating jwt for github app do not work with client id but work with app id
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app#example-using-bash-to-generate-a-jwt
What part(s) of the article would you like to see updated?
Running the script with the client id results in a token which when used throws the following error:
{
"message": "A JSON web token could not be decoded",
"documentation_url": "https://docs.github.com/rest",
"status": "401"
}
Running the script with the app id results in a valid token.
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
@paololazzari Thanks so much for opening a PR! I'll get this triaged for review ✨
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:
@paololazzari Apologies for the delay! We recently merged https://github.com/github/docs/pull/33859 that I believe resolves the problem this issue is raising. Many apologies for not being able to get to this sooner 💛
I'll go ahead and close out this issue - thank you!