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)
This commit is contained in:
Anurag Saxena
2026-04-17 01:24:35 -04:00
committed by GitHub
parent 877b7446bb
commit 2e8784cf79

View File

@@ -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.",