S
S
someserj2016-08-05 17:43:59
MySQL
someserj, 2016-08-05 17:43:59

Angularfire, What's up with $requireAuth() in Firebase 3?

I use $routeProvider, in which I want to prohibit navigation along the route if the user is not authorized, but it gives me AuthenticationFactory.getRequire(...).$requireAuth is not a function

resolve: {
        'currentAuth' : function(AuthenticationFactory){
          return AuthenticationFactory.getRequire().$requireAuth();
        }
      }

var firebaseAuthObject = $firebaseAuth();
function getRequire(){
      return firebaseAuthObject;
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2016-04-04
@Winsik

select provider, if(status,status,0) from table group by provider

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question