diff --git a/streamlit_authenticator/views/authentication_view.py b/streamlit_authenticator/views/authentication_view.py index 0aea1b67..bcaac82f 100644 --- a/streamlit_authenticator/views/authentication_view.py +++ b/streamlit_authenticator/views/authentication_view.py @@ -367,6 +367,7 @@ def login(self, location: Literal['main', 'sidebar', 'unrendered'] = 'main', callback=callback, captcha=captcha, entered_captcha=entered_captcha): self.cookie_controller.set_cookie() + time.sleep(self.attrs.get('login_sleep_time', params.PRE_LOGIN_SLEEP_TIME)) if self.path and self.cookie_controller.get_cookie(): st.rerun() def logout(self, button_name: str = 'Logout',