Skip to content

Commit

Permalink
fix: Adds support for passing jwt as has param.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Jan 13, 2025
1 parent 865c428 commit b370973
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/features/conference/components/Conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,22 @@ class Conference extends Component<Props, State> {
const interfaceConfigOverwrite = {
SHOW_CHROME_EXTENSION_BANNER: false
};
let jwt;

Object.entries(hashParameters).forEach(([ key, value ]) => {
if (key.startsWith('config.')) {
const configKey = key.substring('config.'.length);

configOverwrite[configKey] = value;
} else if (key === 'jwt') {
jwt = value;
}
});

const options = {
configOverwrite,
interfaceConfigOverwrite,
jwt,
parentNode: this._ref.current,
roomName,
sandbox: 'allow-scripts allow-same-origin allow-popups allow-forms allow-downloads'
Expand Down

0 comments on commit b370973

Please sign in to comment.