(backend) expose is_authenticated in the LiveKit token

Include the is_authenticated flag on the user in the LiveKit token
and participant metadata.

The frontend needs this information (used in the next commit) to
know whether it can offer to promote a user with access to the room
admin.
This commit is contained in:
lebaudantoine
2026-07-07 20:08:55 +02:00
parent 72f40ecf48
commit b61c0a3bc0
4 changed files with 20 additions and 2 deletions
@@ -0,0 +1,8 @@
import type { Participant } from 'livekit-client'
export const getParticipantIsAuthenticated = (
participant: Participant
): boolean => {
const isAuthenticated = participant.attributes?.is_authenticated
return isAuthenticated == 'true'
}