Kysoql
API referenceType Aliases

PrivateKeyInput

Generated API reference for PrivateKeyInput in @kysoql/auth.

@kysoql/auth / PrivateKeyInput

type PrivateKeyInput =
  | {
  type: "crypto-key";
  key: CryptoKey;
}
  | {
  type: "pem";
  value: string;
}
  | {
  type: "file";
  path: string | URL;
};

Supported sources for the RSA private key used to sign Salesforce JWT assertions.

Union Members

Type Literal

{
  type: "crypto-key";
  key: CryptoKey;
}
NameTypeDescription
type"crypto-key"Selects an already-imported Web Crypto key.
keyCryptoKeyRSA private key used for RS256 signing.

Type Literal

{
  type: "pem";
  value: string;
}
NameTypeDescription
type"pem"Selects an in-memory PEM-encoded private key.
valuestringPEM-encoded PKCS#8 RSA private key.

Type Literal

{
  type: "file";
  path: string | URL;
}
NameTypeDescription
type"file"Selects a private key loaded from the filesystem.
pathstring | URLPath or file URL containing the private key.

On this page