From 2e8784cf7960c2481a5a8881848e9e4b5be26c39 Mon Sep 17 00:00:00 2001 From: Anurag Saxena Date: Fri, 17 Apr 2026 01:24:35 -0400 Subject: [PATCH] fix: show quota auth expired message for Kiro social auth accounts (closes #588) (#620) * fix: add multi-model support for Factory Droid CLI tool (closes #521) * fix: show quota auth expired message for Kiro social auth accounts (closes #588) --- open-sse/services/usage.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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.",