Polished login

This commit is contained in:
Keannu Christian Bernasol 2023-07-03 22:40:58 +08:00
parent a634f07f2b
commit 4faf222b52
5 changed files with 123 additions and 18 deletions

View file

@ -40,7 +40,7 @@ export function UserLogin(user: LoginParams) {
.post("/api/v1/accounts/token/login/", user)
.then(async (response) => {
AsyncStorage.setItem("token", JSON.stringify(response.data.auth_token));
return [true];
return [true, JSON.stringify(response.data.auth_token)];
})
.catch((error) => {
console.log(