CodeZettaInterview Hub

NestJS · Guards · Senior · Debugging

Scenario: public health route blocked by global AuthGuard.

Short Interview Answer

Use @Public() metadata and guard short-circuit when public; or exclude routes carefully.

Detailed Explanation

Global guards need escape hatches. Test public routes in e2e.

Did you know this answer?