public async Task <LoginExternalResponse> Handle(LoginExternalCommand command, CancellationToken token) { var info = await _userExternalLoginService.GetUserExternalLoginInfo(); if (info == null) { return(new LoginExternalResponse() { ExternalLoginInfo = null }); } var result = await _externalLoginService.ExternalLoginSignIn(info.LoginProvider, info.ProviderKey, isPersistent : false); return(new LoginExternalResponse() { ExternalLoginInfo = info, LoginResult = new LoginResult() { SignInResult = result } }); }