The open source coding agent.
TypeScript
ignore: fix type errors
Dax Raad7050cc0ac384
diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.tsindex 5a4cc95da1f..269afa476a1 100644--- a/packages/opencode/src/provider/provider.ts+++ b/packages/opencode/src/provider/provider.ts@@ -86,17 +86,17 @@ export namespace Provider {options: {apiKey: "",async fetch(input: any, init: any) {- let info = await Auth.get("github-copilot")+ const info = await Auth.get("github-copilot")if (!info || info.type !== "oauth") returnif (!info.access || info.expires < Date.now()) {const tokens = await copilot.access(info.refresh)if (!tokens)throw new Error("GitHub Copilot authentication expired")- info = {+ await Auth.set("github-copilot", {type: "oauth",...tokens,- }- await Auth.set("github-copilot", info)+ })+ info.access = tokens.access}const headers = {...init.headers,