wip hint if the user is authenticated or not in attributes

This commit is contained in:
lebaudantoine
2026-05-17 23:44:49 +02:00
parent 71f76a81e9
commit de50aeb4fe
+5 -1
View File
@@ -121,7 +121,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": not user.is_anonymous,
}
)
)