Login with the auth type, returning an error response on failure. Not all types support login, only m.login.password and m.login.token See https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login This function will be called when doing login and when doing 'sudo' style actions e
(ctx context.Context, reqBytes []byte)
| 44 | // The returned cleanup function must be non-nil on success, and will be called after |
| 45 | // authorization has been completed. Its argument is the final result of authorization. |
| 46 | LoginFromJSON(ctx context.Context, reqBytes []byte) (login *Login, cleanup LoginCleanupFunc, errRes *util.JSONResponse) |
| 47 | // TODO: Extend to support Register() flow |
| 48 | // Register(ctx context.Context, sessionID string, req interface{}) |
| 49 | } |
no outgoing calls
no test coverage detected