Constructors

Methods

  • to generate device info, call createDeviceInfo(). Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/9b5a892afaf0b-create-device-info for more details.

    Returns Promise<any>

    cidaasDeviceService.createDeviceInfo().then(function (resp) {
    // your success code
    }).catch(function(ex) {
    // your failure code
    });
  • To delete device associated to the client, call deleteDevice() Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/3d44ad903d6e8-logout-the-user-for-a-device for more details.

    Parameters

    Returns Promise<any>

    const options = {
    device_id: 'id of device associated to the client.' // call **getDevicesInfo()** to get List of device ids and its details.
    };
    cidaasDeviceService.deleteDevice(options).then(function (resp) {
    // your success code
    }).catch(function(ex) {
    // your failure code
    });
  • To get all devices information associated to the client, call getDevicesInfo() Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/2a2feed70303c-get-device-by-user for more details.

    Parameters

    • Optionalaccess_token: string

    Returns Promise<any>

    cidaasDeviceService.getDevicesInfo().then(function (resp) {
    // the response will give you devices informations.
    }).catch(function(ex) {
    // your failure code here
    });