@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/index.cjs CHANGED
@@ -324,11 +324,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
324
324
  lifetimeGrantedUsdMicros
325
325
  };
326
326
  }
327
- var LIVEPEER_REMOTE_SIGNER_AUDIENCE, DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
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() || LIVEPEER_REMOTE_SIGNER_AUDIENCE;
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,