Skip to content

cookie_manager.delete(cookie) error #68

@miukki

Description

@miukki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions