Api gateway that consumes two equal endpoints of different applications

Hi, I’m new using Kong and I’ve created an API gateway that consumes two similar applications

in which I already consume the POST endpoints

  1. app1/users/login
  2. app2/users/login

the endpoint returns the logging data in which it has a token

What I am trying to do is, if the user is registered in both applications and I want to list the services he has requested, that through these two endpoints

  1. app1/path/to/services
  2. app2/path/to/services

can get the services of the two applications

Is there an example where I capture the token returned by the login, pass it, and return the services of the two applications?

I appreciate the help and the examples or documentation that you provide to solve this requirement.

thanks a lot