Develop #2

Open
w-vandal wants to merge 48 commits from develop into main
Showing only changes of commit 242aa1d708 - Show all commits
+4 -1
View File
@@ -24,6 +24,9 @@ const ACCESS_TOKEN_TTL = '1h';
], ],
controllers: [AuthController], controllers: [AuthController],
providers: [AuthService, JwtAuthGuard], providers: [AuthService, JwtAuthGuard],
exports: [JwtAuthGuard], // JwtModule doit aussi etre exporte : JwtAuthGuard est instancie dans le contexte d'injection du
// module CONSOMMATEUR (ex: SessionsModule) quand il est utilise via @UseGuards() hors d'AuthModule,
// et a donc besoin d'y resoudre JwtService lui-meme (sinon UnknownDependenciesException).
exports: [JwtAuthGuard, JwtModule],
}) })
export class AuthModule {} export class AuthModule {}