diff --git a/provider/linear-issues/index.ts b/provider/linear-issues/index.ts index ed19a7db..ffb85b31 100644 --- a/provider/linear-issues/index.ts +++ b/provider/linear-issues/index.ts @@ -144,7 +144,8 @@ async function linearApiRequest( method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken}`, + // API keys don't need Bearer prefix (unlike oauth) + Authorization: accessToken.startsWith('lin_api_') ? accessToken : `Bearer ${accessToken}`, }, body: JSON.stringify({ query, variables }), }) diff --git a/provider/linear-issues/package.json b/provider/linear-issues/package.json index d7449fe8..39e56f9a 100644 --- a/provider/linear-issues/package.json +++ b/provider/linear-issues/package.json @@ -1,6 +1,6 @@ { "name": "@openctx/provider-linear-issues", - "version": "0.0.6", + "version": "0.0.7", "description": "Linear Issues context for code AI and editors (OpenCtx provider)", "license": "Apache-2.0", "repository": {