add: extra Userlogin check, some users are redirected to UserProfile page (when profile is incomplete), not Dashboard at logon.
modify:
agentOptions: {
rejectUnauthorized: false
}
Note: seems SunnyPortal is using an out of date certificate, I needed to have this check off (= less secure) to get it to work for me..
node_helper was throwing CERT_HAS_EXPIRED exceptions on every callback.