feat(kimchi): add Kimchi OAuth provider support
Add Kimchi as a browser-token OAuth provider routed through its OpenAI-compatible gateway. Discover live models for /v1/models and provider models, normalize Claude-compatible requests, and wire up provider connection tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,12 +12,14 @@ function CallbackContent() {
|
||||
|
||||
useEffect(() => {
|
||||
const code = searchParams.get("code");
|
||||
const token = searchParams.get("token");
|
||||
const state = searchParams.get("state");
|
||||
const error = searchParams.get("error");
|
||||
const errorDescription = searchParams.get("error_description");
|
||||
|
||||
const callbackData = {
|
||||
code,
|
||||
token,
|
||||
state,
|
||||
error,
|
||||
errorDescription,
|
||||
@@ -70,7 +72,7 @@ function CallbackContent() {
|
||||
console.log("localStorage failed:", e);
|
||||
}
|
||||
|
||||
if (!(code || error)) {
|
||||
if (!(code || token || error)) {
|
||||
setTimeout(() => setStatus("manual"), 0);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user