mkhorasani/Streamlit-Authenticator

Unable to login

Closed this issue · 1 comments

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?

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']
)

My fault, it should work here. I used the wrong username.