Working with multiple database

There is a situation. I working with JWT token-based authentication and want to configure the database from token.

by default - abc_database
when user request with JWT token then I need to set Database that is defined inside Token

Hello, i think you can use a connection manager like Eloquent or implement your own.
I have suggest the same approach in this other topic PDO per user Slim 4

This way it’s simple to add new connections and select the right connection for each query.