mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
Reworked fingerprint prefix
This commit is contained in:
parent
283ab7d9f0
commit
22c82f48f1
@ -77,7 +77,7 @@ function App() {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
event: 'didInitializeAdministration',
|
event: 'didInitializeAdministration',
|
||||||
uuid,
|
uuid,
|
||||||
deviceId: `web-fingerprint-${deviceId}`,
|
deviceId,
|
||||||
}),
|
}),
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -4,7 +4,9 @@ const getUniqueIdentifier = async () => {
|
|||||||
const fp = await FingerprintJS.load();
|
const fp = await FingerprintJS.load();
|
||||||
const result = await fp.get();
|
const result = await fp.get();
|
||||||
|
|
||||||
return result.visitorId;
|
const deviceId = `web-fingerprint-${result.visitorId}`
|
||||||
|
|
||||||
|
return deviceId;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default getUniqueIdentifier;
|
export default getUniqueIdentifier;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user