        {
            this.authRoomUsers.set(roomId, { roomId, userIds: [] });
            users = this.authRoomUsers.get(roomId)!;
        }

        users.userIds.push(userId);
        await this.writeDataToFile();

        console.log(`[${this.className}] New authorization record for User [${userId}] in Room [${roomId}] was created.`);
    }

    public async remove(roomId: string, userId: string): Promise<void>
    {
        const users = this.authRoomUsers.get(roomId);