docs icon indicating copy to clipboard operation
docs copied to clipboard

bash instructions for creating jwt for github app do not work with client id but work with app id

Open paololazzari opened this issue 1 year ago • 2 comments

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.

paololazzari avatar Jul 16 '24 09:07 paololazzari