function convertJSON()

in s12d/client/src/store/auth.js [8:15]


function convertJSON(json) {
  const oAuthTokenBodyArray = Object.entries(json).map(([key, value]) => {
    const encodedKey = encodeURIComponent(key);
    const encodedValue = encodeURIComponent(value);
    return `${encodedKey}=${encodedValue}`;
  });
  return oAuthTokenBodyArray.join("&");
}