iya-sts
    Preparing search index...

    Variable readBody

    readBody: (req: any) => Result = ...

    Type Declaration

      • (req: any): Result
      • Reads the request content once, before anything is verified: raw bytes, and the JSON or the JWS it carries.

        Nothing read here is acted on until the proof over it has verified.

        Parameters

        • req: any

          the request

        Returns Result

        { ok: true, hadContent, raw, json, jose }, or a refusal