I will clarify since that is not what I meant.
Most examples of shiny apps with database integration hardcode the user credentials and place the code for establishing the connection ahead of the ui/server sections in app.R.
For my application, it is critical that each user access the database via their own set of credentials. As such, I need to provide a login mechanism for them. I want to be able to utilize the advantages of the pool package so that the application isn't explicitly connecting, disconnecting, and then reconnecting every time the database is needed.
So basically, I'm wondering about the best way for the user to enter their credentials and establish the pool so it's available for the duration of the session. I hope that makes more sense.
Thanks