@supernovaio/cli
Version:
Supernova.io Command Line Interface
13 lines (11 loc) • 832 B
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="be31c3bd-5572-5d4b-b7ef-54f87120cb9f")}catch(e){}}();
import { SupernovaApiClient } from "@supernova-studio/client";
import { VaultService } from "../services/vault.service.js";
import { apiHostForEnvironment } from "../types/environment.js";
const vaultService = new VaultService();
export const getApiClient = async (env) => {
const { accessToken } = await vaultService.getTokensFromVault(env);
return new SupernovaApiClient({ accessToken, host: apiHostForEnvironment(env) });
};
//# sourceMappingURL=api-client.js.map
//# debugId=be31c3bd-5572-5d4b-b7ef-54f87120cb9f