How is isMobile Property in the Tenant Logs Determined

Problem statement

Most tenant logs have an ‘isMobile’ attribute, which is either true or false. This article explains how is it determined.

Solution

Auth0 uses the user-agent of the requests to determine whether the request is originating from a mobile device and sets this value. Auth0 supports the most common mobile user agents.

However, sending a custom user-agent will not work correctly and may show up as isMobile: false, even if the request is actually from a mobile device.