Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is Token Refresh Occurring? #22

Open
defblox opened this issue Sep 26, 2023 · 0 comments
Open

How is Token Refresh Occurring? #22

defblox opened this issue Sep 26, 2023 · 0 comments

Comments

@defblox
Copy link

defblox commented Sep 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant