fix: resolve lint error - ensure email is properly typed as string
This commit is contained in:
1 parent
5305e54adf
commit
8280ce880e
2 files changed
+3
-1
No files matched your search
Submodule
+1
Submodule openclaw added at 0639c7bf1f.
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user