Added options.auth function