Extending Vue Client with RPT Tokens

Hi all,
I’m using keycloak client on my Vue application, as described below,

Now I’m planning to move RBAC controls to keycloak rather than checking authorization on my backend. Everything is prepared on backend side and it works with RPT tokens. But I couldn’t decide how to get RPT token after keycloak login page redirects the user to my app to access backend methods from the Vue UI. Is there a predefined function on keycloak client, or should I call keycloak token api manually(axios or similar)?

Thanks
Emre