Alternative Setups
Below are alternative approaches to using the DeviceAssure library. Each setup still uses the same configs as listed in Configuration Options.
JavaScript Modules
<script type="module">
import('<path/to/deviceAssure.min.js>').then(() => {
DeviceAssure.load({
licence: '<LICENCE_KEY>',
onSuccess: function (response) {
console.log('DeviceAssure', response);
},
onError: function (error) {
console.error('DeviceAssure Error', error);
}
});
});
</script>
Example Frameworks
Fully working examples of the DeviceAssure library integrated into popular frameworks are included in the source package. Each framework example includes its own README with setup instructions.
See the Sample Application page for details.
See Also
- Client to Server - Direct validation from the browser
- Server to Server - Validation via your backend server
- Configuration Options - Storage, caching, tags, and IMEI options