public async Task <string> Login(string pEmail, string pPassword) { try { var token = await PostAsync <Token>(UrlConstants.LoginURL(), new LoginUser { email = pEmail, password = pPassword }); HttpClientFactory.AccessToken = token.ToString(); return(token.ToString()); } catch (Exception e) { return(e.Message); } }