import { Request } from 'express' ; export class AuthRequest { constructor ( public email , public password , public otp ? , public session ? ) { } static buildFromRequest ( req ) { return new AuthRequest ( req . body . email , req . body . password , req . body . otp , req . session ) ; } }