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

Rebuild how we store keycloak auth tokens #2082

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

Kadrian
Copy link
Collaborator

@Kadrian Kadrian commented Sep 14, 2021

Results returned from useKeycloak aren't updating when there are new
/ refreshed tokens coming in. For that reason, we have to use the
onTokens callback and store tokens within global state (using a
custom react context in this case).

That way, components that use the token (like the download / preview button)
may re-render.

Results returned from useKeycloak aren't updating when there are new
/ refreshed tokens coming in. For that reason, we have to use the
`onTokens` callback and store tokens within global state (using a
custom react context in this case).

That way, components that use the token (like the download / preview button)
may re-render.
@Kadrian Kadrian merged commit a48ecb9 into develop Sep 14, 2021
@delete-merged-branch delete-merged-branch bot deleted the feature/fix-outdated-auth-tokens-for-real branch September 14, 2021 14:35
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

Successfully merging this pull request may close these issues.

1 participant