mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
fix(matrix): store credentials after mautrix login
Add StoreCredentials flag to persist access token after authentication. Fixes M_MISSING_TOKEN errors on subsequent API calls.
This commit is contained in:
@@ -66,6 +66,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
|
||||
},
|
||||
Password: password,
|
||||
InitialDeviceDisplayName: c.meta.Name,
|
||||
StoreCredentials: true,
|
||||
})
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to authenticate Matrix user")
|
||||
|
||||
Reference in New Issue
Block a user