How to share same token generated in client App in web Api

Hi . Previously I was using identity server 4 for authentication my client and Api. I have a client app in dot net core that works on implicit and standard flow. when user get the login page from identity provider it generates the access token and I could use same token in both dotnet core client app and dotnet core api.

Now I am changing the identity provider from identityserver4 to Keycloak . How can I achieve above use case?
In identity server we can add an apiResource for api and give it to in scope but I could not find any solution in keycloak. Please guide me for the same