()
| 27 | * refresh would have fixed them. |
| 28 | */ |
| 29 | export async function createCloudClient(): Promise<HyperframesCloudClient> { |
| 30 | const client = new HyperframesCloudClient({ |
| 31 | baseUrl: resolveCloudBaseUrl(), |
| 32 | getAuthHeaders: resolveCloudAuthHeaders, |
| 33 | }); |
| 34 | return wrapWith401Retry(client); |
| 35 | } |
| 36 | |
| 37 | function wrapWith401Retry(client: HyperframesCloudClient): HyperframesCloudClient { |
| 38 | return new Proxy(client, { |
no test coverage detected