Attempting to create a user using Angular.
myApp.controller('loginCtrl',['$scope','$firebaseAuth','config',function($scope,$firebaseAuth,config){
console.info('[APP-INFO] ~ loginCtrl Start')
var ref = new Firebase('https://myauth-tadmit.firebaseio.com/');
var auth = $firebaseAuth(ref);
$scope.register = function(){
auth.$createUser({
email: $scope.user.email,
password: $scope.user.password
}).then(function(regUser){
console.log('User registration complete')
}).catch(function(error){
console.log(error.message)
});
}
}]);
When calling the register() function, I encounter a console error:
Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/
Using Angular 1.5.8 +
<script src="https://cdn.firebase.com/js/client/2.2.4/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/1.2.0/angularfire.min.js"></script>