Mohamed-512 / Extra-Streamlit-Components

An all in one place, to find complex or just not available components by default on streamlit.
Apache License 2.0
466 stars 59 forks source link

cookie_manager.delete(cookie) error #68

Open miukki opened 4 months ago

miukki commented 4 months ago

Hi @Mohamed-512 thank you for your hard work,

where is full documentation for stx.CookieManager, only in the book which we supposed to purchase? please answer

#when do 
cookie_manager.delete(cookie) 
#error occured
stx.CookieManager Failed to delete cookie: id_token - There are multiple widgets with the same `key='delete'`.

version use extra-streamlit-components = "^0.1.71"

error is fixed if add same key as you set for cookie_manager.set .eg

#if
cookie_manager.set(cookie=cookie_name, val=token, key=f"persist_{cookie_name}")
#use 
cookie_manager.delete(cookie=cookie_name, key="persist_" + cookie_name)

please add to documentation