forked from Yara724/api
YARA-913
This commit is contained in:
18
src/auth/dto/captcha-response.dto.ts
Normal file
18
src/auth/dto/captcha-response.dto.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
|
||||
export class CaptchaResponseDto {
|
||||
@ApiProperty({
|
||||
description:
|
||||
"SVG captcha as a data URI — use as `<img src={image} />` in the frontend. " +
|
||||
"Swagger shows this as text only; paste the full string into a browser tab, " +
|
||||
"or call GET /actor/captcha?format=raw to view the image directly.",
|
||||
example: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iLi4u",
|
||||
})
|
||||
image: string;
|
||||
|
||||
@ApiProperty({
|
||||
description: "Unix timestamp (ms) when this captcha expires.",
|
||||
example: 1710000000000,
|
||||
})
|
||||
expiresAt: number;
|
||||
}
|
||||
Reference in New Issue
Block a user