added force end transmition for dispatchers
This commit is contained in:
@@ -2,7 +2,7 @@ import { getServerSession } from "api/auth/[...nextauth]/auth";
|
||||
import { ROOMS } from "_data/livekitRooms";
|
||||
import { AccessToken } from "livekit-server-sdk";
|
||||
import { NextRequest } from "next/server";
|
||||
import { prisma } from "@repo/db";
|
||||
import { getPublicUser, prisma } from "@repo/db";
|
||||
|
||||
/* if (!process.env.LIVEKIT_API_KEY) throw new Error("LIVEKIT_API_KEY not set");
|
||||
if (!process.env.LIVEKIT_API_SECRET)
|
||||
@@ -38,8 +38,13 @@ export const GET = async (request: NextRequest) => {
|
||||
roomJoin: true,
|
||||
canPublish: true,
|
||||
canSubscribe: true,
|
||||
canUpdateOwnMetadata: true,
|
||||
});
|
||||
|
||||
at.attributes = {
|
||||
publicId: user.publicId,
|
||||
};
|
||||
|
||||
const token = await at.toJwt();
|
||||
|
||||
return Response.json({ token });
|
||||
Reference in New Issue
Block a user