@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/env.cjs
CHANGED
|
@@ -293,11 +293,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
|
|
|
293
293
|
lifetimeGrantedUsdMicros
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
|
|
297
297
|
var init_mint_token = __esm({
|
|
298
298
|
"src/signer/mint-token.ts"() {
|
|
299
299
|
init_json_fields();
|
|
300
|
-
LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
|
|
301
300
|
DEFAULT_TTL_REFRESH_RATIO = 0.8;
|
|
302
301
|
TOKEN_RESPONSE_ERROR = "invalid_token_response";
|
|
303
302
|
}
|
|
@@ -364,7 +363,7 @@ async function mintSignerTokenFromDeviceToken(options) {
|
|
|
364
363
|
code: "oidc_discovery_invalid"
|
|
365
364
|
});
|
|
366
365
|
}
|
|
367
|
-
const audience = options.audience?.trim() ||
|
|
366
|
+
const audience = options.audience?.trim() || issuerUrl;
|
|
368
367
|
const params = new URLSearchParams({
|
|
369
368
|
grant_type: TOKEN_EXCHANGE_GRANT,
|
|
370
369
|
subject_token: options.deviceToken,
|