mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.37k stars 229 forks source link

logout #136

Closed jgperrin closed 4 months ago

jgperrin commented 4 months ago

How can I control the logout?

  1. When I logout and login again, the chat is still there. How can I clear everything?

  2. How can I logout via a function? Like if there is an emergency?

mkhorasani commented 4 months ago

Dear @jgperrin, please refer to the README for further information about how to invoke the logout feature.

  1. I am not sure what exactly you mean by 'the chat is still there'? In Streamlit, widgets are stateful within the same session, i.e. if you do not refresh your webpage anything you have entered will still be there.
  2. You can programmatically logout by passing location='unrendered' to the logout feature.