Skip to content

Commit

Permalink
Tokens should only be invalidated after registration
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Brown <callum@calcuode.com>
  • Loading branch information
govynnus committed Jun 4, 2021
1 parent 1606dc4 commit 5ba0996
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proposals/3231-token-authenticated-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ POST /_matrix/client/r0/register
```

If the server verifies that `fBVFdqVE` is a valid token then the account is
registered as normal, otherwise a `401` status is returned. On the successful
use of a token the server may alter the validity of the token. For example, the
token may be completely invalidated, or its number of permitted uses reduced.
Management of the tokens is left to the server implementation.
registered as normal, otherwise a `401` status is returned. Once registration of
the user has completed, the server may alter the validity of the token.
For example, the token may be completely invalidated, or its number of permitted
uses reduced. Management of the tokens is left to the server implementation.

Using the User-Interactive Authentication API means clients' existing
registration logic will be unaffected, with a fallback available for clients
Expand Down

0 comments on commit 5ba0996

Please sign in to comment.