How to make react application to redirect to keycloak page on startup if not authenticated using @react-keycloak/web library

How to make react application to redirect to keycloak page on startup if not authenticated using @react-keycloak/web. Currently it is by default going to application page even after wrapping it with the ReactKeycloakProvider component.

Hi @khera-sandeep I’ve implemented this project using @react-keycloak/web

Have a look at it.