Haruka041
chore: reset repository history with clean initial import
5b324f1
import axios from "axios";
import { __USERSERVERHOST__ } from "../../../global.config";
import { UserInDB } from "../../interfaces/bace";
export async function getUserByToken(token: string) {
const res = await axios.get(`${__USERSERVERHOST__}/user/info`, { data: { token } });
return res.data.data as UserInDB;
}