Web Library sample page

This page makes a device check call to the DeviceAssure API as soon as it loads.

To disable the call please set serverToServer: true in the DeviceValidation options before loading the dv.min.js.

Example
                
                    <script type="text/javascript">
                        DeviceValidation = {
                            options: {
                                licence: '<LICENCE_KEY>', // Replace this with licence key provided.
                                serverToServer: false,    // When true, prevents the DeviceAssure service being called from the client.
                                onSuccess: function(response) {},
                                onError: function(response) {},

                                storageType: 'local-storage' // This can be changed to 'cookie' or 'local-storage', 'local-storage' by default
                            }
                        };
                    </script>
                    <script src="../dist/dv.min.js" type="text/javascript"></script>
                
            

See example on Server 2 Server Example page


Properties