UNPKG

@light-auth/core

Version:

light auth core framework agnostic, using arctic

11 lines (10 loc) 499 B
/** * this function is used to get the client IP address from the request headers. * @param headers - The headers from the request. * @returns The client IP address or null if not found. */ export declare function getClientIp(headers: Headers): string | null; export declare function isLocalIp(ip: string): boolean; export declare function isValidIp(ip: string): boolean; export declare function isValidLocalIp(ip: string): boolean; export declare function isValidPublicIp(ip: string): boolean;