aboutsummaryrefslogtreecommitdiff
path: root/worker/jmap/connect.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/jmap/connect.go')
-rw-r--r--worker/jmap/connect.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/worker/jmap/connect.go b/worker/jmap/connect.go
index 740dd251..b4ce45ec 100644
--- a/worker/jmap/connect.go
+++ b/worker/jmap/connect.go
@@ -8,14 +8,14 @@ import (
func (w *JMAPWorker) handleConnect(msg *types.Connect) error {
w.w.Debugf("connecting")
- client := &jmap.Client{SessionEndpoint: w.endpoint}
+ client := &jmap.Client{SessionEndpoint: w.config.endpoint}
- if w.oauth {
- pass, _ := w.user.Password()
+ if w.config.oauth {
+ pass, _ := w.config.user.Password()
client.WithAccessToken(pass)
} else {
- user := w.user.Username()
- pass, _ := w.user.Password()
+ user := w.config.user.Username()
+ pass, _ := w.config.user.Password()
client.WithBasicAuth(user, pass)
}