fix: resolve lint error - ensure email is properly typed as string
This commit is contained in:
parent
5305e54adf
commit
8280ce880e
1
openclaw
Submodule
1
openclaw
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 0639c7bf1f37bafeb847afc9e422f05f3bb084a3
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user