XX-10634 - auth code alias checking is broken. Problem is alias checking breaks because settings are unsaved - id = -1. Proposed solution is to save the settings when doing the check