Skip to content

Commit

Permalink
MSC2918: account registration API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed May 20, 2021
1 parent 0e615f7 commit 870cded
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion proposals/2918-refreshtokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ The login API returns two additional fields:
- `expires_in_ms`: The lifetime in milliseconds of the access token.
- `refresh_token`: The refresh token, which can be used to obtain new access tokens.


### Account registration API changes

Unless `inhibit_login` is `true`, the account registration API returns two additional fields:

- `expires_in_ms`: The lifetime in milliseconds of the access token.
- `refresh_token`: The refresh token, which can be used to obtain new access tokens.

### Token refresh API

This API lets the client refresh the access token.
Expand Down Expand Up @@ -45,7 +53,7 @@ response:
### Device handling

The current spec states that "Matrix servers should record which device each access token is assigned to".
This must be updated to reflect that devices are bound to a session, which are created during login and stays the same one after refreshing the token.
This must be updated to reflect that devices are bound to a session, which are created during login and stays the same after refreshing the token.

## Potential issues

Expand Down

0 comments on commit 870cded

Please sign in to comment.