ping-identity
    Preparing search index...

    Function createDeviceClient

    • Creates a reusable Device Client bound to a single SSO session.

      Parameters

      Returns DeviceClient

      A DeviceClient exposing per-kind repositories.

      Error when the native module is unavailable, or DEVICE_CLIENT_MISSING_CONFIG when required fields are missing.

      const client = createDeviceClient({
      serverUrl: 'https://openam.example.com/am',
      ssoToken: session.value,
      realm: 'alpha',
      });
      const devices = await client.oath.get();