Coding task · NestJS course · Module 4: Authentication

Handling 401 Unauthorized error

Implement unauthorized access handling in the controller

Task

Complete the validate method in AuthService that checks email and password, and throws throw new UnauthorizedException('Invalid login credentials') when the user is not found