mkhorasani/Streamlit-Authenticator

logout

Closed this issue · 1 comments

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?

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.