diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py index bb7b10a793..b20de46116 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py @@ -139,9 +139,7 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore): Args: token: The access token of a user. Returns: - None, if the token did not match, otherwise dict - including the keys `name`, `is_guest`, `device_id`, `token_id`, - `valid_until_ms`. + None, if the token did not match, otherwise a `TokenLookupResult` """ return await self.db_pool.runInteraction( "get_user_by_access_token", self._query_for_auth, token