Skip to content

Commit

Permalink
fix(auth-checker): remove base authchecker (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored Jul 5, 2019
1 parent 638138d commit 90c1ef7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Connection, ConnectionOptions, useContainer as TypeORMUseContainer } fr
import { logger, Logger } from '../core/logger';
import { getRemoteBinding } from '../gql';
import { DataLoaderMiddleware, healthCheckMiddleware } from '../middleware';
import { authChecker } from '../tgql';
import { createDBConnection } from '../torm';

import { CodeGenerator } from './code-generator';
Expand Down Expand Up @@ -51,7 +50,7 @@ export interface ServerOptions<T> {
export class Server<C extends BaseContext> {
config: Config;
apolloConfig?: ApolloServerExpressConfig;
authChecker: AuthChecker<C>;
authChecker?: AuthChecker<C>;
autoGenerateFiles: boolean;
connection!: Connection;
container: Container;
Expand Down Expand Up @@ -101,7 +100,7 @@ export class Server<C extends BaseContext> {
this.container = this.appOptions.container || Container;
TypeORMUseContainer(this.container as any); // TODO: fix any

this.authChecker = this.appOptions.authChecker || authChecker;
this.authChecker = this.appOptions.authChecker;
this.bodyParserConfig = this.appOptions.bodyParserConfig;
this.apolloConfig = this.appOptions.apolloConfig || {};

Expand Down

0 comments on commit 90c1ef7

Please sign in to comment.