done
This commit is contained in:
9
apps/backend/src/modules/auth/dto/refresh.dto.ts
Normal file
9
apps/backend/src/modules/auth/dto/refresh.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class RefreshTokenDto {
|
||||
@ApiPropertyOptional({ description: 'Optional refresh token in body if not provided via cookie' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
refreshToken?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user