mkhorasani/Streamlit-Authenticator

Refresh Page Would Lost Login and the way to fix it

Closed this issue · 1 comments

version streamlit-authenticator==0.3.2

I have read the document which only says "Multi Page" you need to call authenticator.login() in every Page

But , i have only single page, my problem is , every time i refresh the browser, the page would throw an exception "authentication_status not in st.session_state"

Here is the way to fix this problem :

streamlit_authenticator\authenticate\init.py

Screenshot_3

streamlit_authenticator\authenticate\cookie\init.py

Screenshot_2

Just Change these two lines , and you can Refresh your page now , eveything is OK

Hope you guys can fix this bug in next release

thanks

Hi @qiang-yu, both parts are already implemented as shown below:

image