Hello,
i am developing a web-app in Angular [client] and NodeJS-express [server] on which i would like to embed in an iframe a Jitsi videochat session between two users.
Users in my app are authenticated and every user gets a JWT Token generated in Express with:
const jwt = require('jsonwebtoken');
......
var token=jwt.sign(user.dataValues, config.token_secret);
I have successfully installed a Jitsi server that has no authentication.
I need to protect it to avoid that anonymous users connect and use it but it has to let users in my app to make a video session using their JWT tokens.
I embed in iframe with
const options = {
roomName: this.room,
width: 600,
height: 600,
jwt: this.apiService.getUserToken(),
parentNode: document.querySelector('#meet')
};
const api = new JitsiMeetExternalAPI(domain, options);
and i followed https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md to configure enable JWT, but after this, when i go to the jitsi server the webcam does not work for the anonymous user and for the JWT token user.
What am i doing wrong? Can anyone help me, please?
Do I have to generate my JWT token in some way according to Jitsi specs?
Thans in advance and greetings