How to create connect to jitsi with user and password?

I have configured a user and password and added secure domain.

authentication = "internal_hashed"

How do I pass the user password to the JitsiConnection using lib-jitsi-meet api ?
I’m not sure if I have to pass it on the connect function.

sudo prosodyctl register <username> <password>

I know how to create the users, I need to know how to pass the user and password to the lib-jitsi-meet