From 5b5a699dd8fc0b9f96453dfdb2a50784c0f3f954 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Fri, 10 Mar 2023 21:35:01 +0800 Subject: [PATCH] Some more changes to API.tsx --- src/Components/Api/Api.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Components/Api/Api.tsx b/src/Components/Api/Api.tsx index b68da2e..0cfc1f5 100644 --- a/src/Components/Api/Api.tsx +++ b/src/Components/Api/Api.tsx @@ -145,10 +145,7 @@ export function UserLogin(user: LoginParams) { ) .then(async (response) => { localStorage.setItem("token", JSON.stringify(response.data.auth_token)); - console.log( - "Login Success! Stored Token: ", - JSON.parse(localStorage.getItem("token") || "{}") - ); + console.log("Login Success "); return true; }) .catch((error) => {