Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(kiro): enable Google OAuth login option (#2392)
Cong Vu Chi65105feeafee
diff --git a/src/shared/components/KiroAuthModal.tsx b/src/shared/components/KiroAuthModal.tsxindex 51fae0b212..05d26a46e7 100644--- a/src/shared/components/KiroAuthModal.tsx+++ b/src/shared/components/KiroAuthModal.tsx@@ -163,10 +163,10 @@ export default function KiroAuthModal({</div></button>- {/* Google Social Login - HIDDEN */}+ {/* Google Social Login */}<button- onClick={() => handleMethodSelect("social-google")}- className="hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors"+ onClick={() => handleSocialLogin("google")}+ className="w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors"><div className="flex items-start gap-3"><span className="material-symbols-outlined text-primary mt-0.5">diff --git a/tests/unit/shared/components/KiroAuthModal.test.tsx b/tests/unit/shared/components/KiroAuthModal.test.tsxnew file mode 100644index 0000000000..728657400c--- /dev/null+++ b/tests/unit/shared/components/KiroAuthModal.test.tsx@@ -0,0 +1,56 @@+// @vitest-environment jsdom+import React from "react";+import { act } from "react";+import { createRoot } from "react-dom/client";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++const cleanupCallbacks: Array<() => void> = [];++function makeContainer(): HTMLElement {+ const container = document.createElement("div");+ document.body.appendChild(container);+ cleanupCallbacks.push(() => {+ container.remove();+ });+ return container;+}++describe("KiroAuthModal", () => {+ beforeEach(() => {+ (+ globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT?: boolean }+ ).IS_REACT_ACT_ENVIRONMENT = true;+ });++ afterEach(() => {+ while (cleanupCallbacks.length > 0) {+ cleanupCallbacks.pop()?.();+ }+ document.body.innerHTML = "";+ vi.restoreAllMocks();+ });++ it("shows Google Account and starts Google social login when clicked", async () => {+ const { default: KiroAuthModal } = await import("@/shared/components/KiroAuthModal");+ const container = makeContainer();+ const root = createRoot(container);+ const onMethodSelect = vi.fn();++ await act(async () => {+ root.render(<KiroAuthModal isOpen onClose={vi.fn()} onMethodSelect={onMethodSelect} />);+ });++ const googleButton = Array.from(container.querySelectorAll("button")).find((button) =>+ button.textContent?.includes("Google Account")+ );++ expect(googleButton).toBeTruthy();+ expect(googleButton?.className).not.toContain("hidden");++ await act(async () => {+ googleButton?.click();+ });++ expect(onMethodSelect).toHaveBeenCalledWith("social", { provider: "google" });+ });+});