This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Description
Describe the bug
I am an admin user in my react application. I wanted to impersonate my user's dashboard and support my users. is there any way we can pass the access token inside ReactKeycloakProvider
and silent login into the user dashboard?
This is the code available in my root.ts file
<ReactKeycloakProvider
authClient={keycloak}
onTokens={({ token }) => {
axios.defaults.headers.common.Authorization = `Bearer ${token}`;
localStorage.setItem('kcToken', token || '');
}}
initOptions={initOptions}
onEvent={handleOnEvent}
>
<ThemeProvider>
<CssBaseline />
<AppRoutes />
</ThemeProvider>
</ReactKeycloakProvider>