Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config?:Object) {
this._config = new AuthConfig(config);
var injector = Injector.resolveAndCreate([HTTP_PROVIDERS]);
this.http = injector.get(Http);
this.tokenStream = new Observable(obs => {
obs.next(this._config.tokenGetter())
});
}