@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.cjs
CHANGED
|
@@ -324,11 +324,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
|
|
|
324
324
|
lifetimeGrantedUsdMicros
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
var
|
|
327
|
+
var DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
|
|
328
328
|
var init_mint_token = __esm({
|
|
329
329
|
"src/signer/mint-token.ts"() {
|
|
330
330
|
init_json_fields();
|
|
331
|
-
LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
|
|
332
331
|
DEFAULT_TTL_REFRESH_RATIO = 0.8;
|
|
333
332
|
TOKEN_RESPONSE_ERROR = "invalid_token_response";
|
|
334
333
|
}
|
|
@@ -395,7 +394,7 @@ async function mintSignerTokenFromDeviceToken(options) {
|
|
|
395
394
|
code: "oidc_discovery_invalid"
|
|
396
395
|
});
|
|
397
396
|
}
|
|
398
|
-
const audience = options.audience?.trim() ||
|
|
397
|
+
const audience = options.audience?.trim() || issuerUrl;
|
|
399
398
|
const params = new URLSearchParams({
|
|
400
399
|
grant_type: TOKEN_EXCHANGE_GRANT,
|
|
401
400
|
subject_token: options.deviceToken,
|