Some more changes to API.tsx

This commit is contained in:
keannu125 2023-03-10 21:35:01 +08:00
parent 2f0238e147
commit 5b5a699dd8

View file

@ -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) => {