diff --git a/openclaw b/openclaw new file mode 160000 index 000000000..0639c7bf1 --- /dev/null +++ b/openclaw @@ -0,0 +1 @@ +Subproject commit 0639c7bf1f37bafeb847afc9e422f05f3bb084a3 diff --git a/src/commands/onboard-auth.credentials.ts b/src/commands/onboard-auth.credentials.ts index fbf6dbfb9..08dba7fee 100644 --- a/src/commands/onboard-auth.credentials.ts +++ b/src/commands/onboard-auth.credentials.ts @@ -10,8 +10,9 @@ export async function writeOAuthCredentials( agentDir?: string, ): Promise { // Write to resolved agent dir so gateway finds credentials on startup. + const emailStr = typeof creds.email === "string" ? creds.email : "default"; upsertAuthProfile({ - profileId: `${provider}:${creds.email ?? "default"}`, + profileId: `${provider}:${emailStr}`, credential: { type: "oauth", provider,