Function patchAuthSettings