Coding task · NestJS course · Module 4: Authentication

LocalStrategy implementation

Create a LocalStrategy extending PassportStrategy with a validate method

Task

Complete the LocalStrategy class that extends PassportStrategy(Strategy) from passport-local and implements validate(username, password) throwing UnauthorizedException when the user does not exist