Fix auth type selection.