Use optional 'context' claims for user identity
masterYou can include an optional context object in the JWT payload to provide user display information. This data is not used for validation but can be used for reporting or UI display.
Context Fields:
group: A string specifying the user's group.user: An object containing:id: User identifier string.name: Display name.email: User email.avatar: URL of the user's avatar.
callee: (Optional) Object for 1-1 calls containingid,name, andavatarof the person being called.
Important: All fields in the user object must be valid strings, numbers, or null. Using other types will cause an exception.
Retrieving Data in lib-jitsi-meet:
To access this data via the JitsiParticipant class, you must enable the presence_identity module in your Prosody configuration. You can then retrieve the identity by listening to the USER_JOINED event.
-- Enable in Prosody config to allow lib-jitsi-meet to see context data
VirtualHost "jitmeet.example.com"
modules_enabled = { "presence_identity" }