import {request, User} from "./index"; export async function login(email: string, password: string): Promise { const response = await request({ method: 'POST', url: 'login', data: {email, password} }) return response.status === 200 } export async function getUser(): Promise { const response = await request({ url: 'me' }) return response.data }