mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-17 06:39:25 +08:00
Some more changes to API.tsx
This commit is contained in:
parent
2f0238e147
commit
5b5a699dd8
1 changed files with 1 additions and 4 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue