mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:18:25 +00:00
fix(chutes): accept manual OAuth code input
This commit is contained in:
@@ -21,10 +21,9 @@ describe("parseOAuthCallbackInput", () => {
|
||||
expect((result as { error: string }).error).toMatch(/state mismatch/i);
|
||||
});
|
||||
|
||||
it("rejects bare code input without fabricating state", () => {
|
||||
it("accepts bare code input for manual flow", () => {
|
||||
const result = parseOAuthCallbackInput("bare_auth_code", EXPECTED_STATE);
|
||||
expect(result).toHaveProperty("error");
|
||||
expect(result).not.toHaveProperty("code");
|
||||
expect(result).toEqual({ code: "bare_auth_code", state: EXPECTED_STATE });
|
||||
});
|
||||
|
||||
it("rejects empty input", () => {
|
||||
|
||||
Reference in New Issue
Block a user