@pymthouse/builder-sdk 0.4.1 → 0.4.2-rc.0
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/env.cjs +2 -3
- package/dist/env.cjs.map +1 -1
- package/dist/env.js +2 -3
- package/dist/env.js.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/signer/server.cjs +1 -1
- package/dist/signer/server.cjs.map +1 -1
- package/dist/signer/server.js +1 -1
- package/dist/signer/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -322,11 +322,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
|
|
|
322
322
|
lifetimeGrantedUsdMicros
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
var
|
|
325
|
+
var DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
|
|
326
326
|
var init_mint_token = __esm({
|
|
327
327
|
"src/signer/mint-token.ts"() {
|
|
328
328
|
init_json_fields();
|
|
329
|
-
LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
|
|
330
329
|
DEFAULT_TTL_REFRESH_RATIO = 0.8;
|
|
331
330
|
TOKEN_RESPONSE_ERROR = "invalid_token_response";
|
|
332
331
|
}
|
|
@@ -393,7 +392,7 @@ async function mintSignerTokenFromDeviceToken(options) {
|
|
|
393
392
|
code: "oidc_discovery_invalid"
|
|
394
393
|
});
|
|
395
394
|
}
|
|
396
|
-
const audience = options.audience?.trim() ||
|
|
395
|
+
const audience = options.audience?.trim() || issuerUrl;
|
|
397
396
|
const params = new URLSearchParams({
|
|
398
397
|
grant_type: TOKEN_EXCHANGE_GRANT,
|
|
399
398
|
subject_token: options.deviceToken,
|