fix(mcp): surface OAuth completion errors (#34145)
This commit is contained in:
parent
71c3a7c8f2
commit
e1e0304a96
2 changed files with 12 additions and 11 deletions
|
|
@ -263,7 +263,7 @@ mcpTest.instance(
|
|||
|
||||
expect(yield* mcp.finishAuth(name, "invalid-code")).toEqual({
|
||||
status: "failed",
|
||||
error: "OAuth completion failed",
|
||||
error: "OAuth completion failed: Token exchange failed",
|
||||
})
|
||||
const entry = yield* auth.get(name)
|
||||
expect(entry?.tokens?.accessToken).toBe("working-token")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue