File

libs/dtos/src/auth/request/SignInWithEmailCredentials.dto.ts

Extends

ValidateableDto

Implements

Partial

Index

Properties

Properties

Optional email
Type : string
Decorators :
@ApiProperty()
@IsEmail()
Optional password
Type : string
Decorators :
@ApiProperty()
@IsStrongPassword(authConfig.isStrongPasswordOptions)
Public validate
Type : function
Inherited from ValidateableDto
Defined in ValidateableDto:11
import { IsEmail, IsStrongPassword } from 'class-validator'
import { ValidateableDto } from '../../generics/Validateable.dto'
import { authConfig } from '../../../../../config/auth.config'
import { UserInterface } from '@isomera/interfaces'
import { ApiProperty } from '@nestjs/swagger'

export class SignInWithEmailCredentialsDto
  extends ValidateableDto
  implements Partial<UserInterface>
{
  @ApiProperty()
  @IsEmail()
  email?: string

  @ApiProperty()
  @IsStrongPassword(authConfig.isStrongPasswordOptions)
  password?: string
}

results matching ""

    No results matching ""