MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / fetchToken

Function fetchToken

src/components/WeatherView.tsx:234–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232 // Fetch mapbox token for crop planning map
233 useEffect(() => {
234 const fetchToken = async () => {
235 try {
236 const { data } = await supabase.functions.invoke("get-mapbox-token");
237 if (data?.token) setMapToken(data.token);
238 } catch (e) { console.error("Failed to fetch mapbox token for crop planning", e); }
239 };
240 fetchToken();
241 }, []);
242

Callers 1

WeatherViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected