Extra-Streamlit-Components
Extra-Streamlit-Components copied to clipboard
cookie_manager.delete(cookie) error
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