Hierarchy

  • SignedHttpRequest

Constructors

Methods

  • Generates and caches a keypair for the given request options.

    Returns Promise<string>

    Public key digest, which should be sent to the token issuer.

  • Removes cached keys from browser for given public key thumbprint

    Parameters

    • publicKeyThumbprint: string

      Public key digest (from generatePublicKeyThumbprint API)

    Returns Promise<boolean>

    If keys are properly deleted

  • Generates a signed http request for the given payload with the given key.

    Parameters

    • payload: string

      Payload to sign (e.g. access token)

    • publicKeyThumbprint: string

      Public key digest (from generatePublicKeyThumbprint API)

    • Optional claims: object

      Additional claims to include/override in the signed JWT

    Returns Promise<string>

    Pop token signed with the corresponding private key

Generated using TypeDoc