chore: update participant identity generation (#306)

* chore: Update participant identity generation in connection-details route

* chore: Update and cleanup dependencies
This commit is contained in:
Jonas Schell 2024-08-26 17:06:09 +02:00 committed by GitHub
parent f39a4f4d6e
commit 9f44291bc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 838 additions and 683 deletions

View File

@ -1,5 +1,5 @@
import { randomString } from '@/lib/client-utils';
import { ConnectionDetails } from '@/lib/types';
import { randomUUID } from 'crypto';
import { AccessToken, AccessTokenOptions, VideoGrant } from 'livekit-server-sdk';
import { NextRequest, NextResponse } from 'next/server';
@ -29,7 +29,7 @@ export async function GET(request: NextRequest) {
// Generate participant token
const participantToken = await createParticipantToken(
{
identity: `${participantName}__${randomUUID()}`,
identity: `${participantName}__${randomString(4)}`,
name: participantName,
metadata,
},

View File

@ -9,14 +9,13 @@
"lint": "next lint"
},
"dependencies": {
"@datadog/browser-logs": "^5.10.0",
"@datadog/browser-logs": "^5.23.3",
"@livekit/components-react": "2.4.3",
"@livekit/components-styles": "1.0.12",
"@livekit/krisp-noise-filter": "^0.2.5",
"livekit-client": "2.5.0",
"livekit-server-sdk": "2.6.1",
"next": "14.2.5",
"next-seo": "^6.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"tinykeys": "^2.1.0"

1514
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff