Member Junction
    Preparing search index...

    Interface MintInstallationTokenOptions

    Options for minting an installation access token.

    interface MintInstallationTokenOptions {
        FetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        NowSeconds?: number;
        Permissions?: GitHubInstallationPermissions;
        Repositories?: string[];
        SkipCache?: boolean;
    }
    Index

    Properties

    FetchImpl?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Injectable fetch implementation for deterministic unit testing.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    NowSeconds?: number

    Injectable clock in seconds for deterministic JWT signing.

    Optional granular permissions to request on the minted token.

    Repositories?: string[]

    Optional list of repository names (without owner prefix, e.g. ['MJ', 'Integrations']) to scope the token to.

    SkipCache?: boolean

    Bypass the in-memory token cache and force a fresh mint.