Angular: automatic login

Hi. Besides SSO for our customers we need the possibility of automatic login without form for our employees. I send a POST request to “…protocol/openid-connect/token” and get the refresh_token etc as result.
Unfortunately I don’t know how to tell the javascript adapter now that I am logged in or how to initialize the Keycloak client now after login via the API.
As frontend we have an Angular application and we use the keycloak-angular library.
Does anyone have a tip for me? Thanks a lot in advance!

There is a check-sso feature in the javascript keycloak adapter, which is probably implemented in keycloak-angular.

Check the JavaScript adapter section of the documentation.

There is a silent check-sso option, but this is mostly obsolete today because of browser modern protections.