mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Add option to store credentials directly in Login()
This commit is contained in:
parent
ea59176c9e
commit
1ee81815fd
3 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue