Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🐛(auth) fix LiveKit token authentication field mismatch

Ghislain LE MEUR59d4c2583b91
diff --git a/src/backend/core/authentication/livekit.py b/src/backend/core/authentication/livekit.py
index b236dc54..35b336a5 100644
--- a/src/backend/core/authentication/livekit.py
+++ b/src/backend/core/authentication/livekit.py
@@ -30,7 +30,7 @@ class LiveKitTokenAuthentication(authentication.BaseAuthentication):
raise exceptions.AuthenticationFailed("Token missing user identity")
try:
- user = UserModel.objects.get(id=user_id)
+ user = UserModel.objects.get(sub=user_id)
except UserModel.DoesNotExist:
user = AnonymousUser()