Handling ugly issues when custom_component does a page redirect

I’ve setup a login button for my streamlit app forked from GitHub - conradbez/streamlit-auth0. However, when I log out it creates another iframe inside my app (see demo gif attached). I think this is caused by a returnTo redirect enforced by the authentication SDK i’m using (essentially refreshing the frontend component). Anyone have an idea how I can fix this issue?

You probably just need to change window.location.origin to window.parent in Navbar.js > logoutWithRedirect().

  const logoutWithRedirect = () =>
      returnTo: window.location.origin,

Hope that works!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.