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 full)

Constructors

Properties

config: BaseProfileConfig = ...

Methods

  • Returns {
        [key: string]: string;
    }

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

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

    • [key: string]: string
  • Returns {
        [key: string]: string;
    }

    • [key: string]: string