import { promiseTimeout } from "@toruslabs/http-helpers" ; export async function getClientIp ( ) { try { return await promiseTimeout ( 10000 , fetch ( "https://icanhazip.com" , { } ) . then ( ( response ) => { if ( response . ok ) { return response . text ( ) ; } throw response ; } ) ) ; } catch ( _ ) { return "" ; } }