Sorunome / mx-puppet-bridge

Puppeting library for matrix
Apache License 2.0
95 stars 29 forks source link

Double puppet token not renewed on failure #37

Closed flukiluke closed 4 years ago

flukiluke commented 4 years ago

If an attempt to puppet the user on the Matrix side fails, the bridge should try to re-login with the shared secret method if possible. This allows recovering from the user changing their password, or just removing the bridge's session.

The required changes are presumably in UserSynchroniser.getClientFromTokenCallback() to handle the homeserver returning an M_UNKNOWN_TOKEN error.

Sorunome commented 4 years ago

Should be fixed in https://github.com/Sorunome/mx-puppet-bridge/commit/308acb31ae11f03a305aaa28883408ec3af61305