Skip to content

getInstallationAccessToken

getInstallationAccessToken(creds, installationId, opts?): Promise<InstallationAccessToken>

Defined in: app-auth/app-auth.ts:138

Exchanges an App JWT for an installation access token — the credential that actually authenticates REST calls, scoped to exactly one installation (D10: never a hardcoded org — the caller supplies which installation, from the webhook payload that triggered this).

The token is cached in memory (per app, API host and installation) until five minutes before it expires; concurrent callers share one mint and a failure is never cached.

GitHubAppCredentials

number

InstallationTokenOptions = {}

Promise<InstallationAccessToken>