auth-runtime/dist/index.js

17 lines
683 B
JavaScript
Raw Permalink Normal View History

2026-03-11 23:33:43 +00:00
/**
* @clawd/auth-runtime
*
* Shared auth runtime for OpenClaw skills.
2026-03-11 23:33:43 +00:00
*
* Primary API just use the client:
*
* import { createSkillClient } from '@clawd/auth-runtime';
* const client = createSkillClient();
* const res = await client.post('/ecom/tasks/scrape', payload);
2026-03-11 23:33:43 +00:00
*/
// ---- Primary API (class-based) ----
export { createSkillClient, SkillClient } from './client.js';
// ---- Functional API (used by 1688-product-master etc.) ----
export { createEnvConfig, fetchSessionJson, getAccessToken, refreshAccessToken, isRetryableSessionError, requestApiWithAutoRefresh, } from './auth.js';
export { requestApi } from './http.js';
2026-03-11 23:33:43 +00:00
//# sourceMappingURL=index.js.map