Skip to content

Expose authenticated GH client instance as app property #1323

Answered by gr2m
shaftoe asked this question in Q&A
Discussion options

You must be logged in to vote

app.auth(id) will return an octokit client with installation authentication. The id needs to be an installation ID, not the app ID. app.auth() will give you the global instance with app authentication, which you can use to iterate through installations and you can use to create new installation access tokens.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@shaftoe
Comment options

@gr2m
Comment options

@shaftoe
Comment options

@gr2m
Comment options

@shaftoe
Comment options

Answer selected by shaftoe
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gr2m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1323 on August 29, 2020 20:06.