im new to angular and getting this error angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference

150 views
Skip to first unread message

alejandro peres

unread,
Sep 23, 2016, 8:02:04 AM9/23/16
to Firebase Google Group

im testing angular fire base and found this example.

https://www.sitepoint.com/real-time-status-update-app-angularjs-firebase/

i created my new database and enabled the email auth method.

later changed the url in authservice.js

 'use strict';

  angular
    .module('statusApp')
    .factory('Auth', AuthService);

  function AuthService($firebaseAuth) {
    var ref = new Firebase("https://mydburl.firebaseio.com");
    return $firebaseAuth(ref);
  }

when i try the app i get this error.

angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference.
    at Object.FirebaseAuth 

i can't seem to find a similiar anywhere. 


any idea where to look or what im doing wrong?

Jacob Wenger

unread,
Sep 23, 2016, 11:52:03 AM9/23/16
to fireba...@googlegroups.com

As a matter of forum etiquette, please avoid cross-posting to both this Google Group and Stack Overflow. If you do, please at least provide links between them. Having duplicate posts often causes us to waste time answering the same thing twice.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/37d4a041-789a-4788-942d-1809160a2e75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages