import { client } from "@weeekly/api-client/client"; import { auth_client } from "./auth-client"; client.setConfig({ auth: async () => { const { data, error } = await auth_client.token(); if (error) { throw new Error(error.message || "Auth Failed"); } return data.token; }, });