How can I validate the token obtained via Keycloak Login theme in REST API?

Hi, In our Frontend application we would like to use Keycloak Login theme for authentication. Our frontend consumes microservice endpoints. The request to these endpoints should also be authorized before processing the same. Therefore, in header, we take Keycloak Access token and only when it passes (with introspect keycloak endpoint), we process the request.

Now the problem is, keycloak login theme emits KEYCLOAK_IDENTITY cookie. This doesn’t work in introspect endpoint.

The client_id is the same between both Frontend Keycloak theme & Microservice.

Can someone help here? How can I validate the token obtained via Keycloak Login theme in REST API?