MatrixClient.login
persists access token but not device ID
#4502
Labels
A-Developer-Experience
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
The /login endpoint returns, among other things, an access token and a device ID.
The access token is self-evidently important: it must be used for all future requests.
MatrixClient.login
persists the access token so that future methods on MatrixClient use it.However, the device ID is also important, particularly for E2EE operations, since the device ID is used in signing operations. However,
MatrixClient.login
does not persist it.The following code, therefore fails, but in a subtle way:
The normal usage of
client.login()
is to create a new MatrixClient based on the results, but if that is the intention:loginWithPassword
andloginWithToken
are similarly affected.The text was updated successfully, but these errors were encountered: