Coding task · NestJS course · Module 4: Authentication

Login endpoint implementation

Create a POST /auth/login endpoint using LocalAuthGuard

Task

Complete the AuthController with a @Post('login') endpoint protected by @UseGuards(LocalAuthGuard) that returns a JWT token