Hello there đź‘‹

Thanks for stopping by! We use cookies to help us understand how you interact with our website.

By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.

Authentication and user info

Streamlit provides native support for user authentication so you can personalize your apps. You can also directly read headers and cookies.

Log in a user

st.login() starts an authentication flow with an identity provider.

st.login()

Log out a user

st.logout() removes a user's identity information.

st.logout()

User info

st.user returns information about a logged-in user.

if st.user.is_logged_in: st.write(f"Welcome back, {st.user.name}!")
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.