diff --git a/src/components/Api/Api.tsx b/src/components/Api/Api.tsx index 91af5ea..0032997 100644 --- a/src/components/Api/Api.tsx +++ b/src/components/Api/Api.tsx @@ -67,11 +67,7 @@ export function UserLogin(user: LoginParams) { ); setAccessToken(response.data.access); setRefreshToken(response.data.refresh); - return [ - true, - JSON.stringify(response.data.access), - JSON.stringify(response.data.refresh), - ]; + return [true]; }) .catch((error) => { console.log("Login Failed:" + error.response.data); @@ -92,7 +88,7 @@ export async function TokenRefresh() { "Token refresh success! New Access Token", response.data.access );*/ - return [true, JSON.stringify(response.data.access)]; + return [true]; }) .catch((error) => { console.log("Refresh Failed: " + JSON.stringify(error.response.data)); diff --git a/src/routes/Login/Login.tsx b/src/routes/Login/Login.tsx index 2e2873d..d0b9cc7 100644 --- a/src/routes/Login/Login.tsx +++ b/src/routes/Login/Login.tsx @@ -80,12 +80,6 @@ export default function Login() { }).then((result) => { if (result[0]) { setUser({ ...user, username: "", password: "", error: "" }); - /*console.log( - "Access Token:", - result[1], - "\nRefresh Token:", - result[2] - );*/ navigation.navigate("Onboarding"); } else { setUser({