17 lines
683 B
JavaScript
17 lines
683 B
JavaScript
/**
|
|
* @clawd/auth-runtime
|
|
*
|
|
* Shared auth runtime for OpenClaw skills.
|
|
*
|
|
* Primary API — just use the client:
|
|
*
|
|
* import { createSkillClient } from '@clawd/auth-runtime';
|
|
* const client = createSkillClient();
|
|
* const res = await client.post('/ecom/tasks/scrape', payload);
|
|
*/
|
|
// ---- 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';
|
|
//# sourceMappingURL=index.js.map
|