protected override async Task <LoginResponse> Action(RefreshTokenCommandParameter parameter)
        {
            IAuthenticationService authenticationService = Resolve <IAuthenticationService>();
            ApiClient client = await authenticationService.FindClient(parameter.ClientId, parameter.ClientSecret);

            client.UnauthorizedIfNull();

            AuthenticationToken token = await authenticationService.GetTokenByRefresh(parameter.RefreshToken, client);

            token.UnauthorizedIfNull();

            AuthenticationToken newToken = await authenticationService.RefreshToken(token);

            return(newToken.ToDtos());
        }