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 metadata
const profile = await device.getProfile({
location: isLocationRequired,
metadata: isMetadataRequired,
});

Hierarchy (View Summary)

Constructors

Properties

config: BaseProfileConfig = ...

Methods

  • Returns { [key: string]: string }

  • Returns { [key: string]: null | string | number }

  • Returns { [key: string]: string }