diff --git a/app/login.tsx b/app/login.tsx
index 2aeef5d..6f39bb7 100644
--- a/app/login.tsx
+++ b/app/login.tsx
@@ -135,10 +135,15 @@ export default function LoginScreen() {
onChange={handleChange}
>
-
- Not working? Try Token Login
-
- {error}
+
+
+ Not working? Try{" "}
+
+ Token Login
+
+
+ {error}
+
("");
const [refreshToken, setRefreshToken] = useState("");
async function login() {
- AsyncStorage.setItem("authToken", accessToken);
- AsyncStorage.setItem("refreshToken", refreshToken);
+ await AsyncStorage.setItem("authToken", accessToken);
+ await AsyncStorage.setItem("refreshToken", refreshToken);
router.push("/onboarding");
}
const [error, setError] = useState("");