public async Task <LoginServiceResult> Login(LoginServiceContract contract)
        {
            var user = await _userService.GetUser(contract.Login);

            var loginResult = GetLoginResult(contract, user);

            if (loginResult.Success)
            {
                await _userService.UpdateRefreshToken(user.Id, contract.RefreshToken);
            }

            return(loginResult);
        }