Fetching several tokens on login

Hi all,

I am currently having an Angular App divided into modules and to reduce the size of the access token I would like to create multiple clients (one per a module). On a login Keycloak needs to generate tokens for each module. And on logout all sessions must be closed and tokens revoked. This could be done through the Keycloak REST API, creating a simple login page as part of the app. Unfortunately this is how a lot of functionality such as OTP Usage, SSO, Password reset etc. will not be functioning. Is there a way this to be done using the provided Keycloak login page and not a custom one?

Thanks!