Set Room Password Problem

Hi everyone!! I’m using the Jitsi Meet API with ‘meet.jit.si’ domain.
I’m setting the password when the room is created, but when the other user try enter in the room this error ocurre. I’m using the API for both users.
CONFERENCE FAILED: conference.passwordRequired

This error ocurre before passwordRequired event

You can use this

api.addEventListener(“passwordRequired”, () => {
api.executeCommand(“password”, password);
});

how to set password after joining call? can you share me some code snippet? I am new in react.
Thanks