GitHub
  • Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @forgerock/sdk-request-middleware
  • middlewareWrapper

Function middlewareWrapper

  • middlewareWrapper(
        request: ModifiedFetchArgs,
        action: { payload?: any; type: ActionTypes },
    ): (
        middleware: undefined | RequestMiddleware<ActionTypes, any>[],
    ) => ModifiedFetchArgs

    Parameters

    • request: ModifiedFetchArgs

      A request object container of the URL and the Request Init object

    • action: { payload?: any; type: ActionTypes }

      The action object that is passed into the middleware communicating intent

      • Optionalpayload?: any

        The payload of the action that can contain metadata

      • type: ActionTypes

        A "Redux" style type that contains the serialized action

    Returns (
        middleware: undefined | RequestMiddleware<ActionTypes, any>[],
    ) => ModifiedFetchArgs

    • Function that takes middleware parameter & runs middleware against request

    Function

    middlewareWrapper - A "Node" and "Redux" style middleware that is called just before the request is made from the SDK. This allows you access to the request for modification.

    • Defined in packages/sdk-effects/sdk-request-middleware/src/lib/request-mware.effects.ts:29

Settings

Member Visibility
GitHub
Documentation
  • Loading...