How to login other apps with keycloak.init?

I have two apps want integration with keycloak, but other apps have a login page with rest api (login). I try to login through rest api login success and i have the response like token and refreshToken but i have page which is need authenticated. I make a guard for few page with keycloak.init when redirect to dashboard page (authenticated) response from keycloak init (authenticated) is false. even though i was logged with rest api (login). How to handle the keycloak init when users login with rest api (login)

Frontend: Vue.js 2.6
Keycloak: 12.x
Backend: Laravel