private IAuthenticator Login(string pAuthorizationCode, string pEmail, string pState) { if (!String.IsNullOrEmpty(pAuthorizationCode)) { return(AuthenticationUtils.GetCredentials(pEmail, pAuthorizationCode, pState)); } else { IAuthorizationState authorizationState = AuthenticationUtils.GetStoredCredentials(pEmail); return(AuthenticationUtils.GetAuthenticatorFromState(authorizationState)); } }