mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-28 16:25:46 +08:00
Polished login
This commit is contained in:
parent
a634f07f2b
commit
4faf222b52
5 changed files with 123 additions and 18 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue