NestJS - Authentication
Examine this LocalStrategy validate method:
What is the main issue with this implementation?
async validate(username: string, password: string) {
const user = await this.authService.validateUser(username, password);
if (!user) {
return null;
}
return user;
}What is the main issue with this implementation?
