- 
                Notifications
    
You must be signed in to change notification settings  - Fork 291
 
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
I am using streamlit-Authenticator which works almost fine except that cookie faster reauthentication never worked.
I am using streamline 1.20.0 and streamlit-authenticator 0.2.1 with python 3.10.6
I've done some analysis and found that the problem is in the module streamlit_authenticator/authenticate.pyat line #106.
The function call :
self.token = self.cookie_manager.get(self.cookie_name)
do NOT return the token value but return None (I checked that the browser effectively sent the cookie properly).
I replaced this line by:
allCookies = self.cookie_manager.get_all()
self.token = allCookies.get(self.cookie_name, None)
and then the correct token value is recovered and processed as expected allowing me to recover authentication.
Any idea why the get do not work ?
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed