check localstorage for user info before redirecting to the login page

This commit is contained in:
Omar Tariq 2024-03-07 11:23:54 +02:00 committed by GitHub
parent 362a0faf5f
commit 3c1e52696d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,8 @@ const App = () => {
console.log("reloaded user", localUser);
}
}
checkUserData()
document.addEventListener('storage', checkUserData)