Keycloak 9: How can I get session from KeyCloak Token?

I have an application secured with keycloak. I want to access it from external application. I want to bypass the login page and authenticate user programmatically. (I have the accessed keycloak secured app, and I am able to recompile it).
(the following stuff I am doing inside the keycloak secured app).
I am able to get token from the keycloak server. (Using the password & username along with the keyclaok config file). Is it possible to create session using the token got from keycloak.
Any suggestions?