Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static processBootstrapConfig(): Promise {
if (SkyAppBootstrapper.config && SkyAppBootstrapper.config.auth) {
return BBAuth.getToken()
.then(() => {
const currentUrl = this.getUrl();
const params = new SkyAppRuntimeConfigParams(
currentUrl,
this.config.params!
);
const ensureContextArgs: BBContextArgs = {
envId: params.get('envid'),
envIdRequired: params.isRequired('envid'),
leId: params.get('leid'),
leIdRequired: params.isRequired('leid'),
svcId: params.get('svcid'),
svcIdRequired: params.isRequired('svcid'),
url: currentUrl
public getToken(args?: BBAuthGetTokenArgs): Promise {
return BBAuth.getToken(args);
}