---
title: "Comment by Deepak Rawat on \"Handle API Calls Using async await Inside the useEffect Hook in React\" | Hashnode"
description: "hey Yogesh, lovely article anyhow I have a doubt regarding API calls from react, is it secure if I am fetching data with basic auth, is the application secure i"
url: "https://hashnode.com/posts/handle-api-calls-using-async-await-inside-the-useeffect-hook-in-react/606802857f07b6328b5ddfc6/comment/615219f3040ee87236950732"
---

[Discussion](https://hashnode.com/posts/handle-api-calls-using-async-await-inside-the-useeffect-hook-in-react/606802857f07b6328b5ddfc6)

Comment [Handle API Calls Using async await Inside the useEffect Hook in React](https://hashnode.com/posts/handle-api-calls-using-async-await-inside-the-useeffect-hook-in-react/606802857f07b6328b5ddfc6)

[Deepak Rawat](https://hashnode.com/@abcdeepakr)

[Sep 27, 2021](https://hashnode.com/posts/handle-api-calls-using-async-await-inside-the-useeffect-hook-in-react/606802857f07b6328b5ddfc6/comment/615219f3040ee87236950732)

hey Yogesh, lovely article anyhow I have a doubt regarding API calls from react, is it secure if I am fetching data with basic auth, is the application secure if I store the API key as env variables? Any sort of help will be appreciated :)
