Created
July 14, 2022 05:59
-
-
Save Joshscorp/0dfc3464e98852f35e07fee3f957d111 to your computer and use it in GitHub Desktop.
OnzAuth App Js Use Effect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
if (isLoggedIn) { | |
updateUserTokens(); | |
navigate('/protected'); | |
} | |
}, [isLoggedIn, navigate]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment