maelstrom icon indicating copy to clipboard operation
maelstrom copied to clipboard

Session management: logout_all

Open chrisabruce opened this issue 4 years ago • 0 comments

Invalidates all access tokens for a user

Invalidates all access tokens for a user, so that they can no longer be used for authorization. This includes the access token that made this request. All devices for the user are also deleted. Device keys <#device-keys>_ for the device are deleted alongside the device.

This endpoint does not require UI authorization because UI authorization is designed to protect against attacks where the someone gets hold of a single access token then takes over the account. This endpoint invalidates all access tokens for the user, including the token used in the request, and therefore the attacker is unable to take over the account in this way.

chrisabruce avatar Apr 06 '20 11:04 chrisabruce