NestJS guards vs middleware for role checks
· 5 vues
Where should I put the authorization logic so it cannot be bypassed?
Démonstration : données fictives.Version de démonstration. Les données sont fictives.
· 5 vues
Where should I put the authorization logic so it cannot be bypassed?
The official docs cover this in the limits section. Also read the repository issues: several contain tested workarounds.
Measure before optimizing. A quick profile usually shows that most of the time is spent in one call. Fix that one first.
Partagez une piste claire et vérifiable.
Votre brouillon est conservé sur cet appareil.