NestJS · Authentication · Fresh / Intern · Concept
Passport in Nest — typical pattern?
Short Interview Answer
AuthModule with PassportStrategy providers, AuthGuard('jwt'|'local'), and strategies encapsulating validation.
Detailed Explanation
Keep strategies thin; issue tokens in auth service. Prefer cookie or bearer consistently.