diff --git a/adapter.ts b/adapter.ts index a807466..9f3decc 100644 --- a/adapter.ts +++ b/adapter.ts @@ -224,7 +224,8 @@ async function tokenize(req: Request): Promise { let room = permissions.find(r => r.room === roomName); if(room) { - console.log(`Found config for room ${roomName}`) + const userName = userInfo["email"] + console.log(`Found config for room ${roomName}. Checking for user ${userName}`) tokenRoom = roomName; // check if the user is in the moderator list if(room.moderators.includes(userName)) {