Next is a TIdAuthWhatsNext function that identifies the next action that should be performed in the authentication process. Next will increment the the value of Retries when the return value is wnDoRequest.
Next is used in TIdHTTP.OnAuthorization to determine the action to be taken by the user agent.