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) => { .then(async (response) => {
localStorage.setItem("token", JSON.stringify(response.data.auth_token)); localStorage.setItem("token", JSON.stringify(response.data.auth_token));
console.log( console.log("Login Success ");
"Login Success! Stored Token: ",
JSON.parse(localStorage.getItem("token") || "{}")
);
return true; return true;
}) })
.catch((error) => { .catch((error) => {