From fdfdb70775fc39622cf2840425f2f808ce5ea360 Mon Sep 17 00:00:00 2001 From: Amanda Lange Date: Thu, 23 Apr 2026 15:37:06 -0400 Subject: [PATCH 1/2] Update the JS to include required identity --- video/functions/video-token.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video/functions/video-token.js b/video/functions/video-token.js index 21096b274..9222a0f82 100644 --- a/video/functions/video-token.js +++ b/video/functions/video-token.js @@ -28,10 +28,11 @@ exports.handler = function (context, event, callback) { const accessToken = new AccessToken( TWILIO_ACCOUNT_SID, TWILIO_API_KEY, - TWILIO_API_SECRET + TWILIO_API_SECRET, + { identity: ACCESS_TOKEN_IDENTITY } ); accessToken.addGrant(videoGrant); // Add the grant to the token - accessToken.identity = ACCESS_TOKEN_IDENTITY; + return callback(null, { token: accessToken.toJwt(), // Serialize the token to a JWT string room: ROOM_NAME, From e9158e8ccc72760d890d6a2da86eab3b7455fbb6 Mon Sep 17 00:00:00 2001 From: Amanda Lange Date: Thu, 23 Apr 2026 15:39:36 -0400 Subject: [PATCH 2/2] fixing required identity --- video/functions/video-token.js | 1 - 1 file changed, 1 deletion(-) diff --git a/video/functions/video-token.js b/video/functions/video-token.js index 9222a0f82..c057e6892 100644 --- a/video/functions/video-token.js +++ b/video/functions/video-token.js @@ -32,7 +32,6 @@ exports.handler = function (context, event, callback) { { identity: ACCESS_TOKEN_IDENTITY } ); accessToken.addGrant(videoGrant); // Add the grant to the token - return callback(null, { token: accessToken.toJwt(), // Serialize the token to a JWT string room: ROOM_NAME,