-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor auth out of _getAppClient #491
Conversation
0a98ae3
to
383b4e7
Compare
75f0c77
to
406331a
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #491 +/- ##
=======================================
Coverage 82.74% 82.74%
=======================================
Files 96 96
Lines 2486 2486
Branches 479 478 -1
=======================================
Hits 2057 2057
Misses 423 423
Partials 6 6
☔ View full report in Codecov by Sentry. |
|
||
// Use the unbound client to hydrate a client bound to an org. | ||
const installation = await appClient.apps.getOrgInstallation({ org }); | ||
client = _getAppClient(installation.data.id); | ||
auth.installationId = installation.data.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I logged locally and also browsed GitHub's UI for existing apps, this does appear to be numeric (per the type def above).
Follow-up to #490.
This sets us up to make app auth variable in the org requested.