Skip to content

Commit

Permalink
Removed hyphen from new role
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmantank authored Jan 26, 2024
1 parent 67cde8b commit cf458b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opentok.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cf458b7

Please sign in to comment.