import type { Session } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type SignInInput = { email: string password: string } const signIn = (http: HttpClient) => { return { query: ( input: SignInInput, ): Promise< Response, undefined, ApiError[]> > => { return http.post('v1/auth/sign_in', input) }, } } export default signIn