Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Button incorrectly says "Logout" when there is no login_token #36

@andreas-bergstrom

Description

@andreas-bergstrom

The code below sometimes generate the visual in the screenshot. It seems the internal state in the React component is sometimes out-of-sync?

login_token = app_msal()

if not login_token:
    st.write("Please login")
Screenshot 2024-02-19 at 15 55 48

Edit:
Streamlit 1.42 now has OAuth built-in:

https://docs.streamlit.io/develop/api-reference/user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions