Moved options up to allow it to be included and references in custom auth calls.