There are a few custom components that have been written for authentication within Streamlit. Additionally, the native authentication support is currently under development.
Check out about six or seven items down this list: Streamlit Components - Community Tracker
Additionally, Streamlit provides read-only access to cookies with st.context already.