CodeZettaInterview Hub

NestJS · Authorization · Fresh / Intern · Comparison

Authentication vs authorization in Nest?

Short Interview Answer

Authn: who is the user; authz: what they may do — guards/policies after identity is known.

Detailed Explanation

Never equate logged-in with allowed. Check resource ownership server-side.

Did you know this answer?