Share your code.
Get device information from your systems users: Device model and version, operating system and version, and an abundance of location information from their ip address
Handy for use in security management for password resetting, detecting new sign in devices etc.
npm install device-ip-location
const device = ;//Make sure bypass the reverse proxy by allowing for IP visibility by enabling proxy trust if you're using express:app;// Within your API function use your request data (req) to access the required parameters (ip and header)// Example agent - 'Mozilla/5.0 (Linux; Android 5.0; NX505J Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36';var agent = reqheaders'user-agent';// Example requestIp - 220.127.116.11var requestIp = reqipdevice