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