KeyError: 'some_cookie_name'
andww opened this issue · 3 comments
Hi,
Thanks for the sample.....it served as a good base for me to learn Multipage Authenticator.
After login, if I click Logout immediately, I get this KeyError. However, if after login, and I click on other Pages then back to Account to logout, this error doesn't seem to happen. Seems like the cookie is not registered straight after login.
I am very new to python, sorry if I had made a newbie error somewhere. Any pointers are greatly appreciated.
That is a bug from the streamlit-authenticator lib or from the cookie-manager that authenticator uses.
I fix this in my branch from the fork.
If you want to try this branch do this.
- In your requirements.txt use the following.
git+https://github.com/fsmosca/Streamlit-Authenticator.git@add-forgotpassword-key
Use that instead of streamlit-authenticator.
The other minor benefits is that in login and forgot password widget, you can specify a key for the form and you can clear the form after submission. See examples.
You should use the official streamlit-authenticator once it is fixed there.
I just revised the requirements.txt file, I use the new streamlit version and the branch.