summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-06-29 11:27:25 +0100
committerRichard van der Hoff <richard@matrix.org>2021-06-29 11:27:25 +0100
commit077d441d42a34c994a3eeeaa2068b837a96e5a7c (patch)
treef6e387b9288d7f932c618aa2983cc75b6f28facd /synapse/api
parentFix SQL (diff)
parentMigrate stream_ordering to a bigint (#10264) (diff)
downloadsynapse-077d441d42a34c994a3eeeaa2068b837a96e5a7c.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py

index edf1b918eb..29cf257633 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py
@@ -245,6 +245,11 @@ class Auth: errcode=Codes.GUEST_ACCESS_FORBIDDEN, ) + # Mark the token as used. This is used to invalidate old refresh + # tokens after some time. + if not user_info.token_used and token_id is not None: + await self.store.mark_access_token_as_used(token_id) + requester = create_requester( user_info.user_id, token_id,