How to use the @nestjs/core/guards/guards-context-creator.GuardsContextCreator function in @nestjs/core

To help you get started, weโ€™ve selected a few @nestjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nestjs / nest / src / websockets / socket-module.ts View on Github external
private static getContextCreator(container): WsContextCreator {
    return new WsContextCreator(
        new WsProxy(),
        new ExceptionFiltersContext(),
        new PipesContextCreator(),
        new PipesConsumer(),
        new GuardsContextCreator(container),
        new GuardsConsumer(),
        new InterceptorsContextCreator(container),
        new InterceptorsConsumer(),
    );
  }
}
github nestjs / nest / packages / websockets / socket-module.ts View on Github external
private getContextCreator(container: NestContainer): WsContextCreator {
    return new WsContextCreator(
      new WsProxy(),
      new ExceptionFiltersContext(container),
      new PipesContextCreator(container),
      new PipesConsumer(),
      new GuardsContextCreator(container),
      new GuardsConsumer(),
      new InterceptorsContextCreator(container),
      new InterceptorsConsumer(),
    );
  }
}
github nestjs / nest / src / websockets / socket-module.ts View on Github external
private getContextCreator(container): WsContextCreator {
    return new WsContextCreator(
      new WsProxy(),
      new ExceptionFiltersContext(),
      new PipesContextCreator(),
      new PipesConsumer(),
      new GuardsContextCreator(container),
      new GuardsConsumer(),
      new InterceptorsContextCreator(container),
      new InterceptorsConsumer(),
    );
  }
}