I need a Twitter api when logging in and registering, as well as when connecting accounts, each with a different URL.
For example:

But when you set multiple redirection URLs, only the first URL works.
For example, if a user applies through test.com/profile/account,
Twitter will be redirected to test.com/signin after the operation.
If I create another multiple api with the api key and the API Key Secret for each of them, the code will be difficult and complicated.
For example, if I have two servers (development and production), I need to create six APIs
Is there a way to use an api key for all routes?