Skip to content

Commit

Permalink
switch to admininitiateauth; fix refresh tokens (#38) (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
huang0h authored Oct 13, 2024
1 parent edf41ce commit f9c645d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class AuthController {
@Post('/verify')
verifyUser(@Body() body: VerifyUserDto): void {
try {
this.authService.verifyUser(body.email, String(body.verificationCode));
this.authService.verifyUser(body.email, body.verificationCode);
} catch (e) {
throw new BadRequestException(e.message);
}
Expand Down
6 changes: 3 additions & 3 deletions apps/backend/src/auth/dtos/verify-user.dto.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { IsEmail, IsNumber } from 'class-validator';
import { IsEmail, IsString } from 'class-validator';

export class VerifyUserDto {
@IsEmail()
email: string;

@IsNumber()
verificationCode: number;
@IsString()
verificationCode: string;
}

0 comments on commit f9c645d

Please sign in to comment.