diff --git a/open-sse/services/usage.js b/open-sse/services/usage.js index a5be9241..6ae5446a 100644 --- a/open-sse/services/usage.js +++ b/open-sse/services/usage.js @@ -665,6 +665,14 @@ async function getKiroUsage(accessToken, providerSpecificData) { }; } + // Social auth (Google/GitHub) - these use a different token format that may not work with AWS CodeWhisperer quota APIs + if (sawAuthError && (authMethod === "google" || authMethod === "github")) { + return { + message: "Kiro quota API authentication expired. Chat may still work.", + quotas: {}, + }; + } + if (sawAuthError) { return { message: "Kiro quota API rejected the current token. Chat may still work.",