Do not reuse client token but generate a new one each time it renders on the page

This commit is contained in:
dinamiko 2021-04-14 12:35:40 +02:00
parent 720180ddd1
commit 6149d79d19

View file

@ -30,12 +30,6 @@ const dataClientIdAttributeHandler = (script, config) => {
return;
}
const token = storedTokenForUser(config.user);
if (token) {
script.setAttribute('data-client-token', token);
document.body.append(script);
return;
}
fetch(config.endpoint, {
method: 'POST',
body: JSON.stringify({