mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:04:32 +00:00
OAuth: normalize profile email
This commit is contained in:
@@ -68,10 +68,8 @@ export async function applyAuthChoiceOAuth(
|
||||
});
|
||||
|
||||
spin.stop("Chutes OAuth complete");
|
||||
const email =
|
||||
(typeof creds.email === "string" ? creds.email.trim() : String(creds.email ?? "").trim()) ||
|
||||
"default";
|
||||
const profileId = `chutes:${email}`;
|
||||
const email = typeof creds.email === "string" ? creds.email.trim() : "";
|
||||
const profileId = `chutes:${email || "default"}`;
|
||||
|
||||
await writeOAuthCredentials("chutes", creds, params.agentDir);
|
||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||
|
||||
Reference in New Issue
Block a user