Authentication in two keycloaks on one web page

Good day!
My page (written in typescript and react) interacts with two resources, access to which is delimited by two separate keycloak instances that are not related to each other. Access to resources is carried out on behalf of the user. The user can have different credentials in this keycloaks. How to organize front interaction with two resources under user rights?