Is it possible to change the Jitsi share url without hosting jitsi on a private server?

I have integrated jitsi in my react app using this module. Here’s the code:

import React, { useState } from "react";

import { Jutsu } from "react-jutsu";

const App = () => {
  const [room, setRoom] = useState("");
  const [name, setName] = useState("");
  const [call, setCall] = useState(false);
  const [password, setPassword] = useState("");

  const handleClick = (event) => {
    event.preventDefault();
    if (room && name) setCall(true);
  };

  return call ? (
    <div>
      <h6>LoDeep Room created by host</h6>
      <Jutsu
        roomName={room}
        displayName={name}
        password={password}
        onMeetingEnd={() => console.log("Meeting has ended")}
        loadingComponent={<p>loading ...</p>}
        errorComponent={<p>Oops, something went wrong</p>}
      />
    </div>
  ) : (
    <form>
      <input
        id="room"
        type="text"
        placeholder="Room"
        value={room}
        onChange={(e) => setRoom(e.target.value)}
      />
      <input
        id="name"
        type="text"
        placeholder="Name"
        value={name}
        onChange={(e) => setName(e.target.value)}
      />
      <input
        id="password"
        type="text"
        placeholder="Password (optional)"
        value={password}
        onChange={(e) => setPassword(e.target.value)}
      />
      <button onClick={handleClick} type="submit">
        Start / Join
      </button>
    </form>
  );
};

 
export default App;

This seamlessly integrates Jitsi in the app by using the Jitsi public server.
The problem with this approach is that users who are not logged-in in my app may be able to access those jitsi rooms if the user who is logged-in shares the public jitsi room link with them. For example:

https://meet.jit.si/Sami

I would like to prevent the users who are not connected to my app from accessing the Jitsi rooms inside my app.

Do I have to host Jitsi in a private server in order to do this?

Pretty much. Because then, you can implement authentication through JWT tokens, which will grant you more granular control over your environment.

Thanks for the quick reply.
What I am trying to achieve is:
Allow only users of my app to go into the jitsi meetings that are started in the app.

Do you think it’s possible to authenticate the users before going into a jitsi meeting that’ started in my app, without hosting jitsi in our servers?

FYI:
My app handles user authentication with JWT.

So I thought maybe if I can change the URL to this:

https://meet.jit.si/app_name?auth_token

And then verify the token, just like I do for the login, I can then achieve my goal:

Only users who are authenticated(logged-in) in my app will be able to join the Jitsi meetings of my app.

There are three reasons for which I don’t want to host Jitsi in our servers yet:

  1. We have a limited plan. So we can’t handle more traffic than the Jitsi servers.
  2. We are still testing this video-conference functionality and user Jitsi servers is enough.
  3. I don’t want to go through the hassle of host Jitsi in our servers yet.

You might be interested in seeing this link which seems to be trying to achieve what I want.