NestJS - Authentication
Identify the error in this LocalStrategy validate method:
async validate(username: string, password: string) {
const user = this.authService.validateUser(username, password);
if (!user) {
throw new UnauthorizedException();
}
return user;
}