17914: Replaces deprecated substr() with substring().
[arvados-workbench2.git] / src / store / auth / auth-action-session.ts
index 2712f136113e4c9ad3b6a2c880c91d4ec7d4dff1..7e81f2d952ebed3bf81353a4e6a6e2518a91044d 100644 (file)
@@ -99,7 +99,7 @@ export const getSaltedToken = (clusterId: string, token: string) => {
         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");