Axinom Mosaic Libraries
    Preparing search index...

    Variable exportedForTestingExtendedLoggingConst

    exportedForTestingExtendedLogging: {
        hookIntoResponseBodyGeneration: (
            res: Response,
            callback: (responseBody: string) => void,
        ) => void;
        neutralizeJWT: (jwt: string | undefined) => string | undefined;
        neutralizeRequestBody: (body: unknown) => unknown;
    } = ...

    These functions are exported only for testing purposes.

    Type Declaration

    • hookIntoResponseBodyGeneration: (res: Response, callback: (responseBody: string) => void) => void

      Hook into the res.write & res.end methods to read the response body. Once the response body is captured, the provided callback will be called

    • neutralizeJWT: (jwt: string | undefined) => string | undefined

      Attempt to neutralize a potentially active JWT by removing the signature from it and returning the remaining content (i.e. header.payload)

    • neutralizeRequestBody: (body: unknown) => unknown

      Masks-out any potentially sensitive data that may exist in the variables property when the request body is originating from a GQL Request.