diff --git a/src/utils/geolocation.js b/src/utils/geolocation.js index 566e604..2d3bde0 100644 --- a/src/utils/geolocation.js +++ b/src/utils/geolocation.js @@ -1,7 +1,5 @@ -const GEOLOCATION_API_KEY = '1489c8e06deb4693bf31733a18fe2351'; - export async function getLocation(ip) { - const geoApiUrl = `https://api.ipgeolocation.io/ipgeo?apiKey=${GEOLOCATION_API_KEY}&ip=${ip}`; + const geoApiUrl = `https://api.ipgeolocation.io/ipgeo?apiKey=${GEOLOCATION_AUTH}&ip=${ip}`; const response = await fetch(geoApiUrl); const data = await response.json();