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

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

No files matched your search

Submodule
+1
Submodule openclaw added at 0639c7bf1f.
+2 -1
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,