From 8819e41a80005d9bcd6b9f3da9a8faf6e997ce20 Mon Sep 17 00:00:00 2001 From: Priyatham Sai Chand Date: Thu, 25 Mar 2021 14:42:43 +0530 Subject: [PATCH] token valid fix --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 87d353f..c4130fc 100644 --- a/src/App.js +++ b/src/App.js @@ -24,13 +24,13 @@ export default function App() { token =""; } const tokenRes = await Axios.post( - "http://localhost:5000/users/tokenIsValid", + "https://server-locaft.herokuapp.com/users/tokenIsValid", null, {headers: {"x-auth-token": token }} ); if (tokenRes.data) { - const userRes = await Axios.get("http://localhost:5000/users/", + const userRes = await Axios.get("https://server-locaft.herokuapp.com/users/", {headers:{"x-auth-token":token}, }); setUserData({