libs/dtos/src/auth/request/SignInWithEmailCredentials.dto.ts
Partial
Properties |
Optional email |
Type : string
|
Decorators :
@ApiProperty()
|
Optional password |
Type : string
|
Decorators :
@ApiProperty()
|
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
}