UNPKG

730 BJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) 2021, salesforce.com, inc.
4 * All rights reserved.
5 * Licensed under the BSD 3-Clause license.
6 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7 */
8Object.defineProperty(exports, "__esModule", { value: true });
9exports.getJwtAudienceUrl = void 0;
10const sfdcUrl_1 = require("./sfdcUrl");
11async function getJwtAudienceUrl(options) {
12 if (options.loginUrl) {
13 const url = new sfdcUrl_1.SfdcUrl(options.loginUrl);
14 return await url.getJwtAudienceUrl(options.createdOrgInstance);
15 }
16 return sfdcUrl_1.SfdcUrl.PRODUCTION;
17}
18exports.getJwtAudienceUrl = getJwtAudienceUrl;
19//# sourceMappingURL=getJwtAudienceUrl.js.map
\No newline at end of file