NestJS - Authentication
In a NestJS app using session-based authentication, which is the most effective way to ensure that only authenticated users can access a protected route?
request.session.user exists before allowing access uses a guard to check request.session.user, which is the correct server-side approach.request.session.user exists before allowing access -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions