diff --git a/app/routers/api.py b/app/routers/api.py index 9f7a0fd..3b6836d 100644 --- a/app/routers/api.py +++ b/app/routers/api.py @@ -266,7 +266,7 @@ async def create_jitsi_jwt( # This is where we securely set the moderator and user info. # Even though 'user' is included we are currently ignoring it to prevent client overrides. It is rebuilt below from the main fields. payload = { - "aud": "jitsi", + "aud": "my_jitsi_app_id", "iss": JWT_APP_ID, "sub": JITSI_DOMAIN, # Your Jitsi base domain "room": request_data.room, @@ -278,6 +278,7 @@ async def create_jitsi_jwt( # 2. 'context' for user data, features, and moderator settings "context": { "user": { + "id": request_data.user.id, "name": request_data.name, "email": request_data.email, # CRITICAL: 'moderator' must be a boolean, not a string