import { AuthAccountType } from "yuebing-model"; import * as a from "~/utils/services/api"; export const sessionService = { getAccount, }; function getAccount(): Promise { return $fetch("/api/account", a.authGet()) .then(a.handleJsonResponse) .catch((_e) => { // console.log(`getAccount error: ${e}, returning empty object`); return {}; }); }