mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
```
debug: add console logging for LiveKit session creation parameters ```
This commit is contained in:
@@ -30,10 +30,19 @@ export async function POST() {
|
||||
try {
|
||||
console.log("Creating LiveKit token...");
|
||||
|
||||
const participantIdentity = `voice_user_${Math.floor(Math.random() * 10_000)}`;
|
||||
const participantIdentity = `voice_user_${Math.floor(
|
||||
Math.random() * 10_000
|
||||
)}`;
|
||||
const participantName = "user";
|
||||
const roomName = `voice_room_${Math.floor(Math.random() * 10_000)}`;
|
||||
|
||||
console.log("LIVEKIT_URL", LIVEKIT_URL);
|
||||
console.log("LIVEKIT_API_KEY", LIVEKIT_API_KEY);
|
||||
console.log("LIVEKIT_API_SECRET", LIVEKIT_API_SECRET);
|
||||
console.log("participantIdentity", participantIdentity);
|
||||
console.log("participantName", participantName);
|
||||
console.log("roomName", roomName);
|
||||
|
||||
const token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET, {
|
||||
identity: participantIdentity,
|
||||
name: participantName,
|
||||
|
||||
Reference in New Issue
Block a user