Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* global window */
import { createTweekClient, createTweekManagementClient } from 'tweek-client';
import { retrieveToken } from '../services/auth-service';
export const getGatewayBaseUrl = () => window.GATEWAY_URL || '';
const config = {
baseServiceUrl: getGatewayBaseUrl(),
getAuthenticationToken: retrieveToken,
};
export const tweekManagementClient = createTweekManagementClient({config, requestTimeoutInMillis: 60 * 1000 });
export const tweekClient = createTweekClient(config);
/* global window */
import { createTweekClient, createTweekManagementClient } from 'tweek-client';
import { retrieveToken } from '../services/auth-service';
export const getGatewayBaseUrl = () => window.GATEWAY_URL || '';
const config = {
baseServiceUrl: getGatewayBaseUrl(),
getAuthenticationToken: retrieveToken,
};
export const tweekManagementClient = createTweekManagementClient({config, requestTimeoutInMillis: 60 * 1000 });
export const tweekClient = createTweekClient(config);