dsh-codex-oauth 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/adapter.js +3 -2
  2. package/package.json +1 -1
package/lib/adapter.js CHANGED
@@ -14,8 +14,9 @@ function tokenProvider(provider) {
14
14
  apiKey: {
15
15
  name: "OpenAI Codex OAuth bearer token",
16
16
  async resolve({ credential }) {
17
- return credential?.access
18
- ? { auth: { apiKey: credential.access }, source: "Pi OAuth" }
17
+ const access = credential?.access ?? credential?.key;
18
+ return access
19
+ ? { auth: { apiKey: access }, source: "DSH Codex OAuth" }
19
20
  : undefined;
20
21
  },
21
22
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-codex-oauth",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Use a ChatGPT Codex subscription in DeepSeek Harness through standalone OAuth",
5
5
  "repository": {
6
6
  "type": "git",