Get a shared, throttled Octokit instance for the given token.
Returns a cached instance if the token matches, otherwise creates a new one.
The client retries on primary rate limits (up to 2 retries) and
secondary rate limits (up to 3 retries), and separately retries
transient 5xx/network errors (up to 3 retries) via @octokit/plugin-retry.
Parameters
token: string
GitHub personal access token
Returns Octokit&RestEndpointMethods&Api&{}
Authenticated Octokit instance with rate limit throttling
Get a shared, throttled Octokit instance for the given token. Returns a cached instance if the token matches, otherwise creates a new one.
The client retries on primary rate limits (up to 2 retries) and secondary rate limits (up to 3 retries), and separately retries transient 5xx/network errors (up to 3 retries) via
@octokit/plugin-retry.