I have shared code beetwen two apps that using different auth strategy.
I want to create Injection token 'AUTH_GUARD' Angular like
{
provide: 'AUTH_GUARD',
useClass: AuthGuard
}
and then use it in
@UseGuards(@Inject('AUTH_GUARD')) or @UseGuards('AUTH_GUARD') or @UseGuards(() => Inject('AUTH_GUARD'))
@Controller("/protected")
but UseGuards can not take injection token as input params