@ApiBasicAuth()
@UseGuards(LocalAuthGuard)
@Post('login')
async login(@Request() req) {
return this.authService.login(req.user);
}
When I open up the api docs, the auth for this route shows a "username" and a "password" field. I want to change the username field to "email". Is that possible?