12 lines
549 B
TypeScript
12 lines
549 B
TypeScript
/**
|
|
* Builds a human-readable client label for security emails and audit logs.
|
|
* Prefers an explicit User-Agent unless it is the Dart/Dio default, in which
|
|
* case X-Tloto-* mobile headers are used.
|
|
*/
|
|
import { Request } from 'express';
|
|
/**
|
|
* @param req Express request (User-Agent + optional X-Tloto-* headers from the app)
|
|
* @returns Device string suitable for "New sign-in" emails, or undefined if nothing useful
|
|
*/
|
|
export declare function resolveClientUserAgent(req: Request): string | undefined;
|
|
//# sourceMappingURL=clientDevice.d.ts.map
|