Skip to content

Commit 9e31aed

Browse files
authored
Merge pull request #2028 from matrix-org/travis/1.0/access-token-devices
Clarify that logging out deletes devices too
2 parents 5c268ef + a30dbc5 commit 9e31aed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

api/client-server/logout.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ paths:
3232
summary: Invalidates a user access token
3333
description: |-
3434
Invalidates an existing access token, so that it can no longer be used for
35-
authorization.
35+
authorization. The device associated with the access token is also deleted.
36+
`Device keys <#device-keys>`_ for the device are deleted alongside the device.
3637
operationId: logout
3738
security:
3839
- accessToken: []
@@ -49,7 +50,9 @@ paths:
4950
summary: Invalidates all access tokens for a user
5051
description: |-
5152
Invalidates all access tokens for a user, so that they can no longer be used for
52-
authorization. This includes the access token that made this request.
53+
authorization. This includes the access token that made this request. All devices
54+
for the user are also deleted. `Device keys <#device-keys>`_ for the device are
55+
deleted alongside the device.
5356
5457
This endpoint does not require UI authorization because UI authorization is
5558
designed to protect against attacks where the someone gets hold of a single access
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that devices are deleted upon logout.

0 commit comments

Comments
 (0)