device-file
v1.2.6
Published
Device only file
Downloads
14,242
Readme
device-file
Device only file
npm install device-file
Stores some metadata about the device and complains if it thinks its been modified
Usage
const { create, resume } = require('device-file')
await create('DEVICE', { appId: 'my-app-id' }) // pass whatever unique data you have for the device/app
// throws if DEVICE was modified or user data doesnt match or if it looks like an unsafe backup
await resume('DEVICE', { appId: 'my-app-id' })
License
Apache-2.0