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) => {
|
.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) => {
|
||||||
|
|
Loading…
Reference in a new issue