Skip to content

Commit

Permalink
MSC2918: specify error codes for the refresh API
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jun 3, 2021
1 parent b320001 commit d433e3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions proposals/2918-refreshtokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ response:
}
```

The `refresh_token` parameter can be invalid for two reasons:

- if it does not exist
- if it was already used once

In both cases, the server must reply with a `401` HTTP status code and an `M_UNKNOWN_TOKEN` error code.
This new use case of the `M_UNKNOWN_TOKEN` error code must be reflected in the spec.

### Device handling

The current spec states that "Matrix servers should record which device each access token is assigned to".
Expand Down

0 comments on commit d433e3b

Please sign in to comment.