Add option to store credentials directly in Login()

This commit is contained in:
Tulir Asokan 2020-07-04 20:18:22 +03:00
commit 1ee81815fd
3 changed files with 12 additions and 2 deletions

View file

@ -38,6 +38,9 @@ type ReqLogin struct {
Token string `json:"token,omitempty"`
DeviceID id.DeviceID `json:"device_id,omitempty"`
InitialDeviceDisplayName string `json:"initial_device_display_name,omitempty"`
// Whether or not the returned credentials should be stored in the Client
StoreCredentials bool `json:"-"`
}
// ReqCreateRoom is the JSON request for https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-createroom