When I tried to do this, I still couldn't log in. Anyone has any idea why's that so?
import streamlit_authenticator as stauth
from streamlit_authenticator import Hasher
with open('frontend/auth/config.yaml') as file:
config = yaml.load(file, Loader=SafeLoader)
# Pre-hashing all plain text passwords once
credentials = Hasher.hash_passwords(config['credentials'])
authenticator = stauth.Authenticate(
credentials,
config['cookie']['name'],
config['cookie']['key'],
config['cookie']['expiry_days'],
config['pre-authorized']
)
Hi I have the latest pip version installed.
When I tried to do this, I still couldn't log in. Anyone has any idea why's that so?