SITES.qoder asked qoder.com's device page for redirect_uri=qoder-app://, the desktop app's own scheme (Qoder.app's Info.plist registers qoder and qoder-app). On a Mac with Qoder.app installed the page's last hop opened the desktop app instead of staying in the tab, while the plugin polls openapi.qoder.sh for the device token and needs no callback at all. Qoder's own clients treat the parameter as optional: Qoder.app's app.asar adds redirect_uri only when its config has one (authRedirectUris: stable qoder-app://, canary qoder-canary://), and Qoder's CLI (@qoder-ai/qodercli 1.1.75, bundle/qodercli.js) builds /device/selectAccounts from challenge, challenge_method, nonce, machine_id and client_id alone, then polls /api/v1/deviceToken/poll. qoder.com now gets the same: no redirect_uri, as qoder-cn already does. cn.test.mjs's "qoder.com's sign-in is as it was" pinned the bug (redirect_uri == qoder-app://); it now checks there is none. Run: - packages/qoder: HOME=<scratch> bun test: 167 pass, 0 fail. - Broke it by hand (redirect back to "qoder-app://"): the #276 test in cn.test.mjs fails (Expected false, Received true), 11 pass 1 fail. - Repo root, as CI: TMPDIR=<scratch> HOME=<scratch>/home2 bun test: 1919 pass, 1 skip, 0 fail across 173 files; bun scripts/check.mjs ok. Not tried against a real Qoder account here. The reporter (asuan-dev) says the same one-line change on 0.2.21 signed in three accounts and left the page on "Sign in success".
13 lines
544 B
JSON
13 lines
544 B
JSON
{
|
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
"version": "0.2.25",
|
|
"description": "Qoder subscriptions in OpenCode and magpie: Qoder (qoder.com) and Qoder CN (qoder.cn)",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md", "LICENSE-CLIProxyAPI"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "qoder", "qoder-cn"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/qoder" }
|
|
}
|