fix(codex-auth): add reset card actions and tests

This commit is contained in:
leokun
2026-09-05 00:12:26 +08:00
parent c379c315e6
commit 20fdea8fb3
4 changed files with 118 additions and 8 deletions
+1 -3
View File
@@ -142,9 +142,7 @@ async function dispatch(message: { id: string; method: string; params?: JsonValu
case "oauth.begin": {
const support = resourceSupport(params.resourceType);
const method = addMethod(support, params.methodId);
result = method.type === "oauth2.authorization-code"
? await method.begin(params.authorization as never, context)
: await method.begin(context);
result = method.type === "oauth2.authorization-code" ? await method.begin(params.authorization as never, context) : await method.begin(context);
break;
}
case "oauth.poll": {