export function isMobileBrowser()

in authui-container/src/utils/browser.ts [100:112]


export function isMobileBrowser(userAgent?: string): boolean {
  const ua = userAgent || getUserAgentString();
  const uaLower = ua.toLowerCase();
  if (uaLower.match(/android/) ||
      uaLower.match(/webos/) ||
      uaLower.match(/iphone|ipad|ipod/) ||
      uaLower.match(/blackberry/) ||
      uaLower.match(/windows phone/) ||
      uaLower.match(/iemobile/)) {
    return true;
  }
  return false;
}