From cf458b791ce526a4776287a7d7d4c3ad824bb5dc Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Fri, 26 Jan 2024 14:39:12 -0500 Subject: [PATCH] Removed hyphen from new role --- lib/opentok.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentok.js b/lib/opentok.js index ee9e1dca..c34be539 100644 --- a/lib/opentok.js +++ b/lib/opentok.js @@ -2068,7 +2068,7 @@ OpenTok.prototype.generateToken = function (sessionId, opts) { ); // validate tokenData - if (!_.includes(['publisher', 'publisher-only', 'subscriber', 'moderator'], tokenData.role)) { + if (!_.includes(['publisher', 'publisheronly', 'subscriber', 'moderator'], tokenData.role)) { throw new Error('Invalid role for token generation: ' + tokenData.role); } if (!_.isNumber(tokenData.expire_time)) {