diff --git a/src/pages/LoginAdmin/index.js b/src/pages/LoginAdmin/index.js index 0403321..771d9e1 100644 --- a/src/pages/LoginAdmin/index.js +++ b/src/pages/LoginAdmin/index.js @@ -73,7 +73,7 @@ const LoginAdmin = () => { } useEffect(() => { - if (!isEmpty(token)) { + if (!isEmpty(token) && !AuthenticationService.isExpired()) { setLoading(true); window.location.replace('/') }