diff options
Diffstat (limited to 'packages/core/src/credentials/opencode.ts')
| -rw-r--r-- | packages/core/src/credentials/opencode.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/core/src/credentials/opencode.ts b/packages/core/src/credentials/opencode.ts index b8a9d4d..d4d4851 100644 --- a/packages/core/src/credentials/opencode.ts +++ b/packages/core/src/credentials/opencode.ts @@ -70,9 +70,7 @@ function parseOcBucket( return { utilization, resetsAt }; } -export async function fetchOpencodeUsage( - keyId: string, -): Promise<OpencodeUsageReport | null> { +export async function fetchOpencodeUsage(keyId: string): Promise<OpencodeUsageReport | null> { const cookie = resolveApiKey("opencode-cookie"); const wsId = getWorkspaceId(keyId); @@ -96,10 +94,7 @@ export async function fetchOpencodeUsage( const html = await response.text(); // Auth redirect check - if ( - html.includes("/auth/authorize") || - html.includes('window.location="/auth/authorize"') - ) { + if (html.includes("/auth/authorize") || html.includes('window.location="/auth/authorize"')) { return null; } |
