@veraid/authority-credentials
    Preparing search index...

    Class GithubExchanger

    Exchanger of GitHub tokens for VeraId credentials.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    requestUrl: string

    The URL of the GitHub token endpoint (ACTIONS_ID_TOKEN_REQUEST_URL).

    token: string

    The GitHub token to use (ACTIONS_ID_TOKEN_REQUEST_TOKEN).

    Methods

    • Fetch the JWT from the hosting service.

      Parameters

      • audience: string

        The audience of the JWT.

      • timeoutMs: number

        The timeout for in milliseconds.

      Returns Promise<string>

      The JWT.

    • Generate the Authorization request header for the VeraId Authority credential endpoint.

      Parameters

      • vauthCredentialUrl: URL

        The VeraId Authority endpoint to obtain the credential.

      • timeoutMs: number

        The timeout (in milliseconds) to obtain the original credential.

      Returns Promise<string>

      The authorization header.