wip hint when a user is identified or not

This commit is contained in:
lebaudantoine
2026-05-31 17:50:32 +02:00
parent 13c7b9ad40
commit d19b3e08c2
+5 -1
View File
@@ -123,7 +123,11 @@ def generate_token(
.with_identity(identity)
.with_name(username or default_username)
.with_attributes(
{"color": color, "room_admin": "true" if is_admin_or_owner else "false"}
{
"color": color,
"room_admin": "true" if is_admin_or_owner else "false",
"is_authenticated": "true" if not user.is_anonymous else "false",
}
)
)