9router/src/app/api/providers/[id]/test
Ryan 97f2a00e74
fix: test Codex connection against actual endpoint (#347)
Change Codex test from token-expiry-only check to probing the real
Codex API endpoint. Sends a minimal request body that triggers a fast
400 without consuming quota. A 400 confirms auth works; only 401/403
indicates a bad token.

Also adds generic acceptStatuses support to the OAuth test framework
so other providers can define non-200 success statuses.
2026-03-23 10:29:28 +07:00
..
route.js refactor: rename provider to alicode (Aliyun Coding) 2026-02-26 08:05:05 +08:00
testUtils.js fix: test Codex connection against actual endpoint (#347) 2026-03-23 10:29:28 +07:00