import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions";
import { AuthService } from "services/auth-service/auth-service";
import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions";
-import * as jsSHA from "jssha";
+import jsSHA from "jssha";
const getClusterConfig = async (origin: string, apiClient: AxiosInstance): Promise<Config | null> => {
let configFromDD: Config | undefined;
throw new Error(invalidV2Token);
}
let salted = secret;
- if (uuid.substr(0, 5) !== clusterId) {
+ if (uuid.substring(0, 5) !== clusterId) {
shaObj.setHMACKey(secret, "TEXT");
shaObj.update(clusterId);
salted = shaObj.getHMAC("HEX");