Add support for `opts.auth`