Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Route SDK traffic through your own server
client_secret
const client = new MederaClient({ proxyUrl: 'https://your.app/api/medera-proxy', }); ``` On your server, implement the proxy: ```typescript // Express / Next.js / Bun app.all('/api/medera-proxy/*', async (req, res) => { const auth = new MederaAuth({ clientId: process.env.MEDERA_CLIENT_ID!, clientSecret: process.env.MEDERA_CLIENT_SECRET!, }); const token = await auth.getAccessToken; // forward req to api.medera.info with bearer token });