Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 2a6a943

Browse files
committed
firebaseAuthService
1 parent c0ce895 commit 2a6a943

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/firebaseAuthService.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(function() {
2+
"use strict";
3+
4+
function FirebaseAuthService($firebaseAuth, firebaseRef) {
5+
return $firebaseAuth(firebaseRef);
6+
}
7+
FirebaseAuthService.$inject = ['$firebaseAuth', 'firebaseRef'];
8+
9+
angular.module('firebase')
10+
.factory('$firebaseAuthService', FirebaseAuthService);
11+
12+
})();

src/firebaseRef.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
this.$$checkUrls = function $$checkUrls(urlConfig) {
2020
if (!urlConfig) {
21-
return new Error('No Firebase URL registered. Use firebaseRefProvider.registerUrl() in the config phase to set up a root reference.');
21+
return new Error('No Firebase URL registered. Use firebaseRefProvider.registerUrl() in the config phase. This is required if you are using $firebaseAuthService.');
2222
}
2323
};
2424

@@ -45,5 +45,5 @@
4545

4646
angular.module('firebase')
4747
.provider('firebaseRef', FirebaseRef);
48-
48+
4949
})();

0 commit comments

Comments
 (0)