Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Forcec re-login
Browse files Browse the repository at this point in the history
  • Loading branch information
N0-0NE-Dev committed Jan 24, 2023
1 parent 453a3a5 commit 8c36610
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/screens/TabScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const Tab = createBottomTabNavigator();

const TabScreen = ({ navigation }) => {
const [contentUpdated, setContentUpdated] = useState(false);
const [loggedin, setLoggedin] = useState(false);

const jsCode = `
if (document.getElementById('yorke_user_login')) {
document.getElementById('yorke_user_login').value='${FASEL_EMAIL}';
Expand Down Expand Up @@ -53,19 +55,12 @@ const TabScreen = ({ navigation }) => {
// pass
}

if (!Storage.contains("loggedin")) {
Storage.set("loggedin", false);
} else {
// pass
}

if (!Storage.contains("resume")) {
Storage.set("resume", JSON.stringify({}));
} else {
// pass
}

const [loggedin, setLoggedin] = useState(Storage.getBoolean("loggedin"));
const contentAutoupdate = Storage.getBoolean("contentAutoupdate");

const updateContent = () => {
Expand Down Expand Up @@ -119,7 +114,6 @@ const TabScreen = ({ navigation }) => {
const handleNavigationChange = (webViewState) => {
if (webViewState.url.includes("home3")) {
setLoggedin(true);
Storage.set("loggedin", true);
} else {
// pass
}
Expand Down

0 comments on commit 8c36610

Please sign in to comment.