docs icon indicating copy to clipboard operation
docs copied to clipboard

Missing examples in "Authenticating with a GitHub App on behalf of a user"

Open NatoBoram opened this issue 1 year ago • 2 comments
trafficstars

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/authenticating-with-a-github-app-on-behalf-of-a-user
  • https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app

What part(s) of the article would you like to see updated?

Authenticating with a GitHub App on behalf of a user is missing an example for how to do this with cURL. It's also missing an example on how to do this with Octokit.js.

Generating a user access token for a GitHub App#Generating a user access token when a user installs your app is missing examples for how to login after you've obtained the token.

There's no way to tell how to do this by looking at octokit/authentication-strategies.js#GitHub App or installation authentication since it redirects to Web application flow, which doesn't mention refresh tokens.

Speaking of refresh tokens, Refreshing user access tokens#Refreshing a user access token with a refresh token is missing an example on how to do this with Octokit.js.

Additional information

The previous page, "Authenticating as a GitHub App installation", has examples on how to do it with both cURL and Octokit.js.

NatoBoram avatar Jan 09 '24 16:01 NatoBoram

@NatoBoram Thanks so much for opening this issue! You, or anyone else, are welcome to submit a PR for updating these docs with examples 💛

nguyenalex836 avatar Jan 09 '24 19:01 nguyenalex836

[maintainer edit for spammy content]

GR7-4444 avatar Jun 20 '24 11:06 GR7-4444