import { IAuthApplicationService } from '@/boundary/authApplicationService/IAuthApplicationService' ; import { IAuthInfo , IRegistrationParams , } from '@/boundary/authApplicationService/InOutType' ; import { userFactory } from '@/stub/domain/factory/IUser' ; import { injectable } from 'inversify' ; @ injectable ( ) export class AuthApplicationService implements IAuthApplicationService { public async registration ( params ) { return { isEmailVerified : false , userId : userFactory ( params ) . id , } ; } public async login ( ) { return { isEmailVerified : true , userId : userFactory ( ) . id , } ; } public async loginWithEmailAndPassword ( email ) { return { isEmailVerified : true , userId : userFactory ( { emailAddress : email , } ) . id , } ; } }