estoy siguiendo la documentacion de nest js para hacer la autenticacion (https://docs.nestjs.com/techniques/authentication) y me sale este error.
Nest can't resolve dependencies of the JwtService (?). Please make sure that the argument JWT_MODULE_OPTIONS at index [0] is available in the AppModule context.
Potential solutions:
- If JWT_MODULE_OPTIONS is a provider, is it part of the current AppModule?
- If JWT_MODULE_OPTIONS is exported from a separate @Module, is that module imported within AppModule?
@Module({
imports: [ /* the Module containing JWT_MODULE_OPTIONS */ ]
})
Mi app.module.ts
@Module({
imports: [
CustomerModule,
TypeOrmModule.forRoot(dbconfig),
AuthModule,
UserModule
],
controllers: [AppController],
providers: [AppService, UserService , AuthService , JwtService],
})
export class AppModule {}