How I can pass 2 more fiels as username in this scenario? I want to do login by phone_number and SSA not only with email.
export class LocalStrategy extends PassportStrategy(Strategy) {
constructor(private authenticationService: AuthenticationService) {
super({
usernameField: 'email'
});
}
async validate(email: string, password: string) {
return this.authenticationService.getAuthenticatedUser(email, password);
}
}