DEV Community

Discussion on: Clear Cache on build for React Apps.

jasimur profile image
Jasim Uddin

It's calling API without login. How I can solve this problem

ammartinwala52 profile image
Ammar Tinwala Author

Hi Jasim

I'm very very sorry for late reply. You would have to place some kind of authentication check first if you want to call the api. If auth is successful then load the ClearCache component which in turns call the API.