Skip to content

Commit

Permalink
fixed auth controller
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyZeroZx committed Jul 2, 2022
1 parent ecb7039 commit fa37ff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export class AuthController {
}

@Post('generate-authentication-options')
async generateAuthenticationOptions(@Body() username: string) {
this.logger.log('Generando Authentication Options Authn Web username' , username);
async generateAuthenticationOptions(@Body() data) {
this.logger.log('Generando Authentication Options Authn Web username' , data.username);
let userAuthenticators: Authentication[] =
await this.authService.getUserAuthenticatorsByUsername(username);
await this.authService.getUserAuthenticatorsByUsername(data.username);
console.log('userAuthenticators ', userAuthenticators );
const authOptions = await generateAuthenticationOption(userAuthenticators);
this.rememberChallenge = authOptions.challenge;
Expand Down

0 comments on commit fa37ff6

Please sign in to comment.