fix: 后端修复passkey注册时challenge不匹配

This commit is contained in:
2025-12-18 21:51:22 +08:00
parent 055dc3972f
commit 1e2d269ec1
2 changed files with 13 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
import { IsString } from "class-validator";
import { IsObject, IsString } from "class-validator";
export class PasskeyRegisterDto {
@IsObject()
credentialResponse: any;
@IsString({ message: '通行证名称只能是字符串' })
name: string;
}