Files
dmenu-api/src/modules/auth/graphql/inputs/refresh-token.input.ts
T
2025-11-21 16:27:49 +03:30

12 lines
354 B
TypeScript

import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsString } from 'class-validator';
@InputType()
export class RefreshTokenInput {
@Field(() => String, { description: 'Refresh token' })
@IsString({ message: 'Refresh token must be a string' })
@IsNotEmpty({ message: 'Refresh token is required' })
refreshToken: string;
}