I want to apply two of guards to root module for global guard
likes this:
@Module({
providers: [
{
provide: APP_GUARD,
useClass: <- I want to use JwtGuard and RoleGuard
}
]
})
export class RootModule {}
I know @UseGuards([JwtGuard, RoleGuard]), but it can't use on APP_GUARD
How can I combine both of guards for global?