mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:10:49 +00:00
fix(models): use synthetic auth expiry for status
This commit is contained in:
@@ -306,6 +306,7 @@ describe("anthropic provider replay hooks", () => {
|
||||
apiKey: "access-token",
|
||||
source: "Claude CLI native auth",
|
||||
mode: "oauth",
|
||||
expiresAt: 123,
|
||||
});
|
||||
expect(readClaudeCliCredentialsForRuntimeMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
@@ -329,6 +330,7 @@ describe("anthropic provider replay hooks", () => {
|
||||
apiKey: "bearer-token",
|
||||
source: "Claude CLI native auth",
|
||||
mode: "token",
|
||||
expiresAt: 123,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -414,11 +414,13 @@ function resolveClaudeCliSyntheticAuth() {
|
||||
apiKey: credential.access,
|
||||
source: "Claude CLI native auth",
|
||||
mode: "oauth" as const,
|
||||
expiresAt: credential.expires,
|
||||
}
|
||||
: {
|
||||
apiKey: credential.token,
|
||||
source: "Claude CLI native auth",
|
||||
mode: "token" as const,
|
||||
expiresAt: credential.expires,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user