@demicodes/provider-grok-build 0.25.1 → 0.25.3
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.
- package/dist/index.mjs +4 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -218,8 +218,10 @@ async function refreshGrokOidcToken(input, signal) {
|
|
|
218
218
|
refresh_token: input.refreshToken,
|
|
219
219
|
client_id: input.clientId
|
|
220
220
|
});
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
const principalType = nonEmptyString(input.principalType);
|
|
222
|
+
const principalId = nonEmptyString(input.principalId);
|
|
223
|
+
if (principalType) body.set("principal_type", principalType);
|
|
224
|
+
if (principalId) body.set("principal_id", principalId);
|
|
223
225
|
const response = await fetch(input.tokenEndpoint, {
|
|
224
226
|
method: "POST",
|
|
225
227
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demicodes/provider-grok-build",
|
|
3
3
|
"description": "Grok Build provider adapter for Demi (reuses ~/.grok OAuth session).",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@demicodes/core": "^0.25.
|
|
15
|
-
"@demicodes/provider": "^0.25.
|
|
16
|
-
"@demicodes/utils": "^0.25.
|
|
14
|
+
"@demicodes/core": "^0.25.3",
|
|
15
|
+
"@demicodes/provider": "^0.25.3",
|
|
16
|
+
"@demicodes/utils": "^0.25.3"
|
|
17
17
|
},
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"main": "./dist/index.mjs",
|