Make the conditional check for authSecret clearer