Exemple #1
0
        private IObservable <Unit> AuthenticateWithFirebase(string authToken)
        {
            IObservable <Unit> result = null;

            if (_provider == "google")
            {
                result = _firebaseAuthService
                         .SignInWithGoogle(null, authToken);
            }
            else if (_provider == "facebook")
            {
                result = _firebaseAuthService
                         .SignInWithFacebook(authToken);
            }

            return(result);
        }
Exemple #2
0
        private IObservable <Unit> AuthenticateWithFirebase(string authToken)
        {
            IObservable <Unit> result = null;

            if (_provider == "google")
            {
                //result = _firebaseAuthService.CurrentUser
                //    .LinkWithGoogle(null, authToken).Select(_ => Unit.Default);
                result = _firebaseAuthService
                         .SignInWithGoogle(null, authToken);
            }
            else if (_provider == "facebook")
            {
                result = _firebaseAuthService
                         .SignInWithFacebook(authToken);
            }

            return(result);
        }