Browse Source

refactor: remove oAuth configuration from auth.service

pull/4612/head
mehmet-erim 6 years ago
parent
commit
a8e539f211
  1. 2
      npm/ng-packs/apps/dev-app/src/app/app.module.ts
  2. 6
      npm/ng-packs/packages/core/src/lib/services/auth.service.ts

2
npm/ng-packs/apps/dev-app/src/app/app.module.ts

@ -15,7 +15,7 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { APP_ROUTE_PROVIDER } from './route.provider';
const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: false })];
const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: true })];
@NgModule({
imports: [

6
npm/ng-packs/packages/core/src/lib/services/auth.service.ts

@ -20,11 +20,7 @@ export class AuthService {
private oAuthService: OAuthService,
private store: Store,
@Optional() @Inject('ACCOUNT_OPTIONS') private options: any,
) {
this.oAuthService.configure(
this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig,
);
}
) {}
login(username: string, password: string): Observable<any> {
const tenant = this.store.selectSnapshot(SessionState.getTenant);

Loading…
Cancel
Save