Skip to content

Function: parseTerminalAuthorizationMessage()

ts
function parseTerminalAuthorizationMessage(
  message
): ParsedTerminalAuthorizationMessage;

Parses a terminal authorization message back into its fields. Enforces the header and that job, node and expiresAt are present; the caller checks the values and the signature. Duplicate or malformed lines are rejected.

Parameters

ParameterType
messagestring

Returns

ParsedTerminalAuthorizationMessage