streamlit-keycloak icon indicating copy to clipboard operation
streamlit-keycloak copied to clipboard

How is Token Refresh Occurring?

Open defblox opened this issue 1 year ago • 0 comments

In the README, I see "By default your access tokens will be refreshed when they expire. Refreshing the tokens will cause your app to be re-rendered. "

Is this literally happening in the background on its own? If not, how does one go about refreshing an expired token? My basic issue right now is trying to use stream-lit keycloak in a multipage streamlit app with short token expiry where a user might spend more time than the token life trying to fill a form. By the time submission occurs, you get 401s (not authorized) from backend APIs. That is expected, but I'm trying to figure out what I can do to catch that and avoid using expired tokens.

defblox avatar Sep 26 '23 15:09 defblox