authentication function

RequestPostProcessor authentication(
  1. Authentication authentication
)

Makes the request with authentication as the current user, for any kind of login, such as a custom token.

Implementation

RequestPostProcessor authentication(Authentication authentication) =>
    FunctionRequestPostProcessor(
      (request) => _withContext(request, authentication),
    );