import { createAuthContext } from '@react-keycloak/core' ; import type { AuthClient } from '@react-keycloak/core' ; import { isServer } from './utils' ; export const reactKeycloakSsrContext = createAuthContext < AuthClient > ( { initialized : isServer ( ) , } ) ; export const ReactKeycloakSSRContextConsumer = reactKeycloakSsrContext . Consumer ;