#Detected 29 DefaultAuthorizer providers registered in your graph

6 messages · Page 1 of 1 (latest)

topaz patio
#

I got the above warning when trying the devtools but I don't really know what to do with it...

cerulean steeple
#

What is your DefaultAuthorizer? How is it added to wherever it is?

topaz patio
#

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 {
 //...
}
cerulean steeple
#

DefaultAuthorizer doesn't match anything inside of the nestjs/nest repo on GitHub. It's not something I'm aware of

topaz patio
cerulean steeple
#

That would probably be related to that library then, and most likely not something you need to worry about