Skip to content
This repository was archived by the owner on Feb 28, 2022. It is now read-only.

Commit bcd45a7

Browse files
committed
fix(oauth): add provider to configure it
1 parent 5b58591 commit bcd45a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/oauth/oauth.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import osmAuthService from './oauth.service';
22

33
var osmOAuthModule = angular.module('osm.oauth', [])
4-
.factory('osmAuthService', osmAuthService);
4+
.factory('osmAuthService', osmAuthService)
5+
.provider('osmAuthService', function osmAuthServiceProvider () {
6+
this.options = {};
7+
this.$get = function osmAuthServiceFactory() {
8+
return new osmAuthService(this.options);
9+
};
10+
});
511

612
export default osmOAuthModule;

0 commit comments

Comments
 (0)