authentication function
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),
);