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tokenPayload = url.split("token=")[1].split(".")[1];
  const decoded = Buffer.from(tokenPayload, 'base64').toString('utf8');
  console.log(JSON.parse(decoded));
}
run();
