import type { User } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type PhoneTokenInput = { user: { phone?: string email?: string login_token: string } } const tokenSignIn = (http: HttpClient) => { return { query: ( input: PhoneTokenInput, ): Promise, undefined, ApiError>> => { return http.post('v3/user/auth/sign_in_with_token', input) }, } } export default tokenSignIn