Changed hardcoded authType to Options.AuthType