#Detected 29 DefaultAuthorizer providers registered in your graph
6 messages · Page 1 of 1 (latest)
What is your DefaultAuthorizer? How is it added to wherever it is?
I assume that DefaultAuthorizer is the global guards? I cannot find any reference in doc or my code for this exact term.
Here is my AppModule:
@Module({
imports: [
DevtoolsModule.register({
http: process.env.NODE_ENV !== 'production',
}),
// Some modules...
],
providers: [
{
provide: APP_GUARD,
useClass: JwtAuthGuard,
},
{
provide: APP_GUARD,
useFactory: (reflector, userDetailsRepo) => new UserRightGuard(reflector, userDetailsRepo),
inject: [Reflector, getRepositoryToken(UserDetails)],
},
...scalars,
],
})
export class AppModule implements NestModule {
//...
}
DefaultAuthorizer doesn't match anything inside of the nestjs/nest repo on GitHub. It's not something I'm aware of
Ah I found it: it's coming from nestjs-query.
That would probably be related to that library then, and most likely not something you need to worry about