public void AuthWithOAuthToken(string provider, string token, Action <AuthData> onSuccess, Action <FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError }; _FirebaseAuthWithOAuthToken(GetiOSObject(), provider, token, authSuccessHandler, authFailureHandler, activeCallEntry.Instance); } }
public void AuthWithPassword(string email, string password, Action <AuthData> onSuccess, Action <FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError }; _FirebaseAuthWithPassword(GetEditorObject(), email, password, activeCallEntry.Instance); } }
public void AuthAnonymously(Action <AuthData> onSuccess, Action <FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError }; _FirebaseAuthAnonymously(GetiOSObject(), authSuccessHandler, authFailureHandler, activeCallEntry.Instance); } }
static void onAuthCancel(long reference, int code, String message, String details) { Action <FirebaseError> callback = null; lock (auth_sync) { if (activeCallEntry != null && activeCallEntry.Instance == reference) { callback = activeCallEntry.OnError; activeCallEntry = null; } } if (callback != null) { callback(new FirebaseError(code, message, details)); } }
static void onAuthSuccess(long reference, String token, String uid, long expiration) { Action <AuthData> callback = null; lock (auth_sync) { if (activeCallEntry != null && activeCallEntry.Instance == reference) { callback = activeCallEntry.OnSuccess; activeCallEntry = null; } } if (callback != null) { callback(new AuthData(token, uid, expiration)); } }
static void onAuthCancel(long reference, int code, String message, String details) { Action<FirebaseError> callback = null; lock (auth_sync) { if (activeCallEntry != null && activeCallEntry.Instance == reference) { callback = activeCallEntry.OnError; activeCallEntry = null; } } if (callback != null) { callback(new FirebaseError(code, message, details)); } }
static void onAuthSuccess(long reference, String token, String uid, long expiration) { Action<AuthData> callback = null; lock (auth_sync) { if (activeCallEntry != null && activeCallEntry.Instance == reference) { callback = activeCallEntry.OnSuccess; activeCallEntry = null; } } if (callback != null) { callback(new AuthData(token, uid, expiration)); } }
public void AuthWithOAuthToken (string provider, string token, Action<AuthData> onSuccess, Action<FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError}; _FirebaseAuthWithOAuthToken(GetiOSObject(), provider, token, authSuccessHandler, authFailureHandler, activeCallEntry.Instance); } }
public void AuthAnonymously (Action<AuthData> onSuccess, Action<FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError}; _FirebaseAuthAnonymously(GetiOSObject(), authSuccessHandler, authFailureHandler, activeCallEntry.Instance); } }
public void AuthWithPassword (string email, string password, Action<AuthData> onSuccess, Action<FirebaseError> onError) { lock (auth_sync) { long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0; activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError}; _FirebaseAuthWithPassword(GetEditorObject(), email, password, activeCallEntry.Instance); } }