Пример #1
0
		public static void Identify(AuthToken token)
		{
			if (string.IsNullOrEmpty(token.UserId))
				return;
			Xamarin.Insights.Identify(
				token.Email,
				new Dictionary<string, string>
				{
					{Xamarin.Insights.Traits.Email, token.Email},
					{Xamarin.Insights.Traits.FirstName, token.GivenName},
					{Xamarin.Insights.Traits.LastName, token.FamilyName},
				});
		}
Пример #2
0
 public LoginSuccess(AuthToken authToken, bool firstTimeLogin)
 {
     FirstTimeLogin = firstTimeLogin;
     LoggedAuthToken = authToken;
 }
Пример #3
0
 public void Save(AuthToken authToken)
 {
    _dbContext.Token.DeleteAll();
    _dbContext.Token.Add(authToken);
 }
 public AuthenticationResult(AuthToken authToken, AuthenticationStatus authenticationStatus, Exception error = null)
 {
     _authenticationStatus = authenticationStatus;
     _error = error;
     AuthToken = authToken;
 }