fix: resolve lint error - ensure email is properly typed as string

This commit is contained in:
spiceoogway 2026-01-30 08:11:43 -05:00
parent 5305e54adf
commit 8280ce880e
2 changed files with 3 additions and 1 deletions

1
openclaw Submodule

@ -0,0 +1 @@
Subproject commit 0639c7bf1f37bafeb847afc9e422f05f3bb084a3

View File

@ -10,8 +10,9 @@ export async function writeOAuthCredentials(
agentDir?: string,
): Promise<void> {
// 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,