Question:
In my nestjs project, I am trying to use multiple jwt strategies. Here is the jwt-auth.guard.ts:Answer:
In yoursec.strategy.ts
you need to give the strategy a custom name like so:'jwt'
name. With the above, it’ll now have the name 'sec'
and be properly registered with passportIf you have better answer, please add a comment about this, thank you!