FRDevice - Collects user device metadata
Example:
// Instantiate new device object (w/optional config, if needed)const device = new forgerock.FRDevice( // optional configuration);// override any instance methods, if needed// e.g.: device.getDisplayMeta = () => {};// Call getProfile with required argument obj of boolean properties// of location and metadataconst profile = await device.getProfile({ location: isLocationRequired, metadata: isMetadataRequired,}); Copy
// Instantiate new device object (w/optional config, if needed)const device = new forgerock.FRDevice( // optional configuration);// override any instance methods, if needed// e.g.: device.getDisplayMeta = () => {};// Call getProfile with required argument obj of boolean properties// of location and metadataconst profile = await device.getProfile({ location: isLocationRequired, metadata: isMetadataRequired,});
Optional
eslint-disable-next-line
FRDevice - Collects user device metadata
Example: